File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11export default {
2+ extensionsToTreatAsEsm : [ '.ts' ] ,
23 testMatch : [ "**/*.test.ts" ] ,
34 transform : {
4- "^.+\\.tsx?$" : "ts-jest" ,
5+ "^.+\\.tsx?$" : [
6+ "ts-jest" ,
7+ {
8+ useESM : true ,
9+ } ,
10+ ] ,
511 } ,
612}
Original file line number Diff line number Diff line change 1010 "scripts" : {
1111 "build" : " ./build.sh && tsc" ,
1212 "watch" : " tsc -w" ,
13- "test" : " jest" ,
13+ "test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
1414 "lint" : " eslint ." ,
1515 "lint:fix" : " eslint --fix ." ,
1616 "prepare" : " npm run build && husky" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ import "jest-cdk-snapshot"
66import * as path from "path"
77import { WebappDeploy } from "."
88import { Source } from "./source"
9+ import { fileURLToPath } from "url"
10+
11+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
912
1013test ( "WebappDeploy" , ( ) => {
1114 const app = new cdk . App ( )
You can’t perform that action at this time.
0 commit comments