2024-08-28 16:24:00 -04:00
|
|
|
module.exports = {
|
|
|
|
rootDir: "./",
|
|
|
|
preset: "ts-jest/presets/default-esm",
|
|
|
|
resolver: "ts-jest-resolver",
|
|
|
|
collectCoverage: false,
|
|
|
|
collectCoverageFrom: [
|
|
|
|
"**/*.{js,jsx,ts}",
|
|
|
|
"!**/node_modules/**",
|
|
|
|
],
|
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
".*/src/.*\\.d\\.ts",
|
|
|
|
".*/src/.*\\.test\\.{ts,js}",
|
|
|
|
".*/src/.*\\.test\\.headless\\.js",
|
|
|
|
],
|
|
|
|
roots: [
|
|
|
|
"<rootDir>/src",
|
|
|
|
],
|
|
|
|
testMatch: [
|
|
|
|
"**/__tests__/**/*.+(ts|tsx|js)",
|
|
|
|
"**/?(*.)+(spec|test).+(ts|tsx|js)",
|
|
|
|
],
|
|
|
|
transform: {
|
|
|
|
"^.+\\.tsx?$": [
|
|
|
|
"ts-jest",
|
|
|
|
{
|
2024-08-29 11:32:14 -04:00
|
|
|
tsconfig: "tsconfig.json"
|
2024-08-28 16:24:00 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
testEnvironment: "node",
|
|
|
|
verbose: true,
|
|
|
|
maxConcurrency: 1,
|
|
|
|
testTimeout: 180000,
|
|
|
|
testPathIgnorePatterns: [
|
|
|
|
"/node_modules/",
|
|
|
|
"/dist/",
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
window: {},
|
|
|
|
XMLHttpRequest: require("node-xmlhttprequest").XMLHttpRequest,
|
|
|
|
},
|
|
|
|
};
|