You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test runner does not pass cli flags to test files when running --test #43941
A workaround is to use NODE_OPTIONS env variable (NODE_OPTIONS="--loader ts-node/esm" node --test a.test.ts). It would still be worth to find a better way to integrate loaders though.
changed the title [-]test runner does not support ESM loaders[/-][+]test runner does not pass cli flags to test files when running `--test`[/+]on Jul 24, 2022
for example, running
node --loader ts-node/esm --test a.test.tswill fail:the challenge is that each test file spawns a new process