Server/project/jest.config.ts
2023-10-29 22:20:30 +00:00

16 lines
381 B
TypeScript

/* eslint-disable @typescript-eslint/naming-convention */
import type { Config } from "jest";
import fs from "fs";
const config: Config = {
testEnvironment: "./tests/CustomEnvironment.ts",
roots: [
"./tests/"
],
transform: {
"^.+\\.ts$": [ "@swc/jest", JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, "utf-8")) ]
}
};
export default config;