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
XO is a wrapper around eslint: https://github.com/xojs/xo
* add precommit hooks with husky
* drop support for node 15
Needed to override `node:` import prefix because it is incompatible with Jest (jestjs/jest#11637)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
With the arrival of Node.js v16, we can now use
node:
to load Node.js builtin modules withrequire
.See: https://nodejs.org/api/esm.html#esm_node_imports
But currently with
jest
, we can't, it fails.To Reproduce
Steps to reproduce the behavior (it is a stupid example, only to show the error):
In a file
lib.js
:And a file
lib.test.js
:Expected behavior
To make it work again, I need to change
const path = require('node:path')
toconst path = require('path')
.Problematic code
https://github.com/facebook/jest/blob/7a64ede2163eba4ecc725f448cd92102cd8c14aa/packages/jest-runtime/src/index.ts#L1909-L1919
envinfo
The text was updated successfully, but these errors were encountered: