Open khteh opened 12 hours ago
export NODE_ENV=development && env TS_NODE_COMPILER_OPTIONS='{"module": "commonjs" }' ./node_modules/.bin/nyc --timeout 10000 --recursive --check-leaks --reporter=lcov --reporter=text --reporter=text-summary --reporter=html ./node_modules/.bin/mocha --loader=ts-node/esm -r ts-node/register tests/*/.ts --reporter mocha-junit-reporter --reporter-options mochaFile=test_reports/mocha/test-results.xml --exit
None of these are tsc
. We don't control how external tools (mis)configure something.
Demo Repo
https://github.com/khteh/Node.JSRestAPI
Which of the following problems are you reporting?
The module specifier resolves at build time, but shouldn't because it doesn't at runtime
Demonstrate the defect described above with a code sample.
Run
tsc --showConfig
and paste its output hereRun
tsc --traceResolution
and paste its output hereoutput too long.
Paste the
package.json
of the importing module, if it existsNot sure what you mean with importing module.
Paste the
package.json
of the target module, if it existsNot sure what you mean with target module.
Any other comments can go here
https://github.com/mochajs/mocha/issues/5171#issuecomment-2400435684 I can run the application without any error. This error only appears when I run the mocha test