- Created src/types/di.ts for DI type definitions - Updated imports in affected files - Fixed test failures caused by circular dependencies
26 lines
697 B
JavaScript
26 lines
697 B
JavaScript
/** @type {import('jest').Config} */
|
|
export default {
|
|
preset: "ts-jest/presets/default-esm",
|
|
testEnvironment: "node",
|
|
extensionsToTreatAsEsm: [".ts"],
|
|
moduleNameMapper: {
|
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
},
|
|
transform: {
|
|
"^.+\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
useESM: true,
|
|
isolatedModules: true,
|
|
},
|
|
],
|
|
},
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
|
testMatch: ["**/__tests__/**/*.test.ts"],
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
testTimeout: 10000,
|
|
maxWorkers: 1, // Run tests serially to avoid worker issues
|
|
testEnvironmentOptions: {
|
|
url: "http://localhost", // Provide a base URL for tests
|
|
},
|
|
};
|