Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Move jest to a separate config
  • Loading branch information
WandererXII committed Nov 21, 2023
1 parent be68e47 commit abb4272
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
15 changes: 15 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"verbose": true,
"transform": {
"^.+\\.ts?$": [
"ts-jest",
{
"useESM": true
}
]
},
"extensionsToTreatAsEsm": [".ts"],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
}
}
18 changes: 1 addition & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,5 @@
"src/variant/util.ts",
"src/variant/variant.ts",
"src/index.ts"
],
"jest": {
"transform": {
"\\.ts$": [
"ts-jest",
{
"useESM": true
}
]
},
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
}
}
]
}

0 comments on commit abb4272

Please sign in to comment.