Skip to content

Commit

Permalink
Fix tests hanging forever
Browse files Browse the repository at this point in the history
There's a bug in ts-jest that makes jest hang if tsconfig.json has a
certain combination of module and moduleResolution values. Fix this by
providing a differend tsconfig for ts-node.

See kulshekhar/ts-jest#4198 and
kulshekhar/ts-jest#4207.
  • Loading branch information
akheron committed Nov 29, 2023
1 parent 56bf109 commit e9345c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions apigw/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
!.yarn/plugins
!.yarnrc.yml
!tsconfig.json
!tsconfig.test.json
1 change: 1 addition & 0 deletions apigw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "tsconfig.test.json",
"useESM": true,
"isolatedModules": true
}
Expand Down
7 changes: 7 additions & 0 deletions apigw/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node10"
}
}

0 comments on commit e9345c9

Please sign in to comment.