equal-access
equal-access copied to clipboard
[BUG]: Checker having issues with ESM environments due to uuid usage
Project
a11y checker
Browser
No response
Operating system
No response
Description
https://ibm-studios.slack.com/archives/C036P1CTN/p1653658647868209 When using Jest 28.1.0, UUID is throwing errors due to ESM / CommonJS confusion. Need to figure out how to resolve usage in both environments.
Steps to reproduce
See description
I resolved this by installing uuid
as a dev dependency and using the jest module name mapper to point to my instance of uuid.
moduleNameMapper: {
'^uuid$': '<rootDir>/node_modules/uuid/dist/index.js',
}
triage: this is caused by the node moving to ESM, we need to investigate and figure it out. The user suggestion is a temp workout. This should be in the next release when we are working on user-related work.
Working with our tests in the 4.0.0-rc.0 release. Please try and re-open if you still have issues with this release.