Skip to content

Commit 5d70974

Browse files
committed
fix: test script for node v2x
With node v2x, running tests results in error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" See TypeStrong/ts-node#2100 Solved as per TypeStrong/ts-node#2100 (comment)
1 parent e2e3c41 commit 5d70974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"prepublishOnly": "npm run test",
2727
"style:fix": "prettier src/**/*.ts --write",
2828
"style:check": "prettier src/**/*.ts --check",
29-
"test": "ts-node --esm --project ./tsconfig.esm.json ./test/index.ts",
29+
"test": "node --test --loader ts-node/esm ./test/index.ts",
3030
"test:ci": "set TS_NODE_PROJECT=./tsconfig.esm.json && node --no-warnings=ExperimentalWarning --loader ts-node/esm ./test/index.ts"
3131
},
3232
"repository": {

0 commit comments

Comments
 (0)