Skip to content

Commit

Permalink
fix: test script for node v2x
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
swiing committed Sep 22, 2024
1 parent e2e3c41 commit 5d70974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prepublishOnly": "npm run test",
"style:fix": "prettier src/**/*.ts --write",
"style:check": "prettier src/**/*.ts --check",
"test": "ts-node --esm --project ./tsconfig.esm.json ./test/index.ts",
"test": "node --test --loader ts-node/esm ./test/index.ts",
"test:ci": "set TS_NODE_PROJECT=./tsconfig.esm.json && node --no-warnings=ExperimentalWarning --loader ts-node/esm ./test/index.ts"
},
"repository": {
Expand Down

0 comments on commit 5d70974

Please sign in to comment.