-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require of @stoplight/spectral-core 1.7.0 fails to error node js 16 #2002
Comments
It's not an issue with Node.js, but with Jest not understanding package exports |
I also had to map some more modules (when using moduleNameMapper: {
'^nimma/legacy$': '<rootDir>/node_modules/nimma/dist/legacy/cjs/index.js',
'^nimma/(.*)': '<rootDir>/node_modules/nimma/dist/cjs/$1',
'^@stoplight/spectral-ruleset-bundler/(.*)$': '<rootDir>/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1'
} |
I also had to add
to get Jest to work with spectral-core |
Ref - #2167 (comment) |
After upgrading to jest 28, we could remove the moduleNameMapper workaround. |
usage:
results =>
what is nimma/legacy? .... 😠
The text was updated successfully, but these errors were encountered: