2023-10-26 22:01:38 +02:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
import type { Config } from "jest";
|
|
|
|
import fs from "fs";
|
2023-03-03 16:23:46 +01:00
|
|
|
|
2023-10-26 22:01:38 +02:00
|
|
|
const config: Config = {
|
2023-10-26 20:12:19 +02:00
|
|
|
testEnvironment: "./tests/CustomEnvironment.ts",
|
2023-03-03 16:23:46 +01:00
|
|
|
roots: [
|
|
|
|
"./tests/"
|
|
|
|
],
|
2023-10-26 22:01:38 +02:00
|
|
|
transform: {
|
|
|
|
"^.+\\.ts$": [ "@swc/jest", JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, "utf-8")) ]
|
|
|
|
}
|
2023-03-03 16:23:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|