Server/project/jest.config.ts

16 lines
381 B
TypeScript
Raw Normal View History

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 = {
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;