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
I get the message (node:5051) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time for every test that runs. That kind of clutters the logs. This could be disabled by adding '--no-warnings=ExperimentalWarning' to the args in this line:
I would be open to disabling this warning. Unfortunately it's not as simple, since Node.js doesn't actually support the --no-warnings=ExperimentalWarning syntax. Relevant discussion: nodejs/node#46862, and a PR to make the Node.js documentation reflect its behavior: nodejs/node#47031
Even then, this would disable all ExperimentalWarnings, even ones caused by the code under test, which doesn't feel optimal.
Right now, it's already possible to disable these warnings via the NODE_OPTIONS environment variable:
NODE_OPTIONS=--no-warnings ts-node-test test/
I'll gladly accept a PR for either of the following:
Adding support for passing --no-warnings directly to ts-node-test, i.e., ts-node-test --no-warnings test/
Suppressing the ExperimentalWarning for ESM loaders specifically (but not all other warnings, too)
I get the message
(node:5051) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
for every test that runs. That kind of clutters the logs. This could be disabled by adding'--no-warnings=ExperimentalWarning'
to the args in this line:ts-node-test/src/index.ts
Line 45 in d92bf10
Would you accept in a PR from me for this change? Or should it be behind a flag/option?
The text was updated successfully, but these errors were encountered: