2022-12-30 12:12:04 +01:00
|
|
|
import type { JestConfigWithTsJest } from "ts-jest";
|
|
|
|
|
|
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
2022-12-01 12:03:37 +01:00
|
|
|
preset: "ts-jest",
|
|
|
|
|
testEnvironment: "node",
|
2023-06-29 16:29:09 +02:00
|
|
|
moduleDirectories: ["node_modules", "src/bin", "src/lib"],
|
2023-01-04 15:50:18 +01:00
|
|
|
setupFiles: ["<rootDir>/src/bin/tests/Setup.ts"],
|
|
|
|
|
transform: {
|
|
|
|
|
"^.+\\.tsx?$": [
|
|
|
|
|
"ts-jest",
|
|
|
|
|
// required due to custom location of tsconfig.json configuration file
|
|
|
|
|
// https://kulshekhar.github.io/ts-jest/docs/getting-started/options/tsconfig
|
|
|
|
|
{ tsconfig: "./src/bin/tsconfig.json" },
|
|
|
|
|
],
|
|
|
|
|
},
|
2023-09-26 11:38:22 +02:00
|
|
|
prettierPath: null,
|
2022-12-01 12:03:37 +01:00
|
|
|
};
|
2022-12-30 12:12:04 +01:00
|
|
|
|
|
|
|
|
export default jestConfig;
|