open-swe/apps/open-swe/jest.config.js
Brace Sproul 0923c8b47e
fix: running tests and in ci (#536)
* fix: running tests and in ci

* cr

* cr

* cr

* exit 0 when no tests

* cr
2025-07-27 19:11:34 +00:00

21 lines
534 B
JavaScript

export default {
preset: "ts-jest/presets/default-esm",
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
"^@open-swe/shared$": "<rootDir>/../../packages/shared/src/index.ts",
"^@open-swe/shared/(.*)$": "<rootDir>/../../packages/shared/src/$1",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".ts"],
setupFiles: ["dotenv/config"],
passWithNoTests: true,
testTimeout: 20_000,
testMatch: ["<rootDir>/src/**/*.test.ts"],
};