Closed rkotze closed 1 year ago
Modernising Git Mob by moving over to the natively supported ESM modules in NodeJS.
Support newer versions of Git Mob dependencies as they move over to ESM modules.
This does mean you need to run on Node 16+
Mocking modules require to use of an unstable API and need to enable an experimental flag on the node for jest to use esm.
https://jestjs.io/docs/ecmascript-modules
Also need to run node argument NODE_OPTIONS=--experimental-vm-modules
NODE_OPTIONS=--experimental-vm-modules
All imports need to have their file extension .js else it won't find the module and you will get an import errror.
.js
npm run build
npm run checks
Please check the type of change your PR introduces:
Modernising Git Mob by moving over to the natively supported ESM modules in NodeJS.
Support newer versions of Git Mob dependencies as they move over to ESM modules.
This does mean you need to run on Node 16+
Helpful information
Mocking modules require to use of an unstable API and need to enable an experimental flag on the node for jest to use esm.
https://jestjs.io/docs/ecmascript-modules
Also need to run node argument
NODE_OPTIONS=--experimental-vm-modules
All imports need to have their file extension
.js
else it won't find the module and you will get an import errror.Pull request checklist
npm run build
) was run locally and any changes were pushednpm run checks
) has passed locally and any fixes were made for failuresPlease check the type of change your PR introduces:
Does this introduce a breaking change?
Other information