Is it possible to override which tsconfig.json ts-node uses when called from mocha?
tsconfig.json
My main tsconfig.json contains \"module\": \"es20
\"module\": \"es20
You can also use ts-mocha (https://www.npmjs.com/package/ts-mocha)
package.json
"test": "ts-mocha -p test/tsconfig.cjs.json test/**/*.test.ts"
test/tsconfig.cjs.json
{ "extends": "../tsconfig.json", "compilerOptions": { "module": "commonjs" } }