Replies: 1 comment
-
Use Jest 28 or 29 and it'll work. For Jest 27 you have to configure the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preliminary Checks
Description
Running tests by jest is causing this kind of errors.
on my repo
on reproduction
Here is the source of the problem https://github.com/krzy789/gatsby-navigate-error/blob/main/src/containers/reducers.js#L2
Reproduction Link
https://github.com/krzy789/gatsby-navigate-error
Steps to Reproduce
Expected Result
Tests should pass/break without this kind of errors.
Actual Result
Cannot find module 'gatsby-page-utils/apply-trailing-slash-option' from 'node_modules/gatsby-link/dist/index.js
Cannot find module 'gatsby-page-utils/apply-trailing-slash-option' from 'node_modules/gatsby-link/dist/index.js
Environment
Config Flags
No response
Beta Was this translation helpful? Give feedback.
All reactions