7.23 breaks mocha cli --require #16002
Unanswered
bubonicfred
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you have a repo that reproduces the issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have unit tests that are run via mocha
npx mocha "./tests/unit/**/*.test.js" --require @babel/register --require tests/unit/babel && npm run test:fixtures:seed-minutes:unit
Running this under 7.23 gives me the error
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/5minitz/5minitz/node_modules/get-func-name/index.js from /home/runner/work/5minitz/5minitz/node_modules/chai/lib/chai/utils/inspect.js not supported.
Is there a workaround for this?
EDIT: For whatever reason I no longer have this issue. I'll update if it decides to reappear
Beta Was this translation helpful? Give feedback.
All reactions