16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
|
import type { Config } from "jest";
|
||
|
|
||
|
const config: Config = {
|
||
|
collectCoverage: true,
|
||
|
coverageDirectory: "../test-coverage",
|
||
|
coverageProvider: "v8",
|
||
|
preset: "ts-jest/presets/default-esm",
|
||
|
testEnvironment: "jest-environment-node",
|
||
|
transform: {
|
||
|
"^.+\\.m?[t]s?$": ["ts-jest", { useESM: true }],
|
||
|
},
|
||
|
rootDir: "src",
|
||
|
};
|
||
|
|
||
|
export default config;
|