open-swe/apps/open-swe-v2/jest.config.js
Palash Shah 46d795c41b
feat: open swe v2 in js! (#797)
* feat: openswe v2

* feat: yarn lock

* update: add eslint

* update: working build & lint

* chore: update types

* chore: format

* reorg agent v2

* cleanup

* fixes

* nits: modifications

* feat: updates

* nit: update yarn lock

* nit: don't add dep to root

* chore: update yarn

* chore: update langgraph.json

* nit: update names

* chore: update functions

* nit: update

---------

Co-authored-by: bracesproul <braceasproul@gmail.com>
2025-08-27 09:49:54 -04: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"],
};