Skip to content
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

Web Tests error in v0.22.1 #1633

Closed
thedavidprice opened this issue Jan 13, 2021 · 1 comment
Closed

Web Tests error in v0.22.1 #1633

thedavidprice opened this issue Jan 13, 2021 · 1 comment
Labels
bug/confirmed We have confirmed this is a bug topic/testing

Comments

@thedavidprice
Copy link
Contributor

@peterp

Web tests are failing due to an import error. I found this preparing for v0.23 and traced it back to v0.22. Possible the issue came from #1465 I tried to diagnose but got stuck.

Screen Shot 2021-01-12 at 4 57 31 PM

Cannot find module '@redwoodjs/router/dist/index' from '../node_modules/@redwoodjs/testing/dist/MockRouter.js'

    Require stack:
      /Users/price/Repos/xx-delete/node_modules/@redwoodjs/testing/dist/MockRouter.js
      src/Routes.js
      /Users/price/Repos/xx-delete/node_modules/@redwoodjs/testing/dist/MockProviders.js
      /Users/price/Repos/xx-delete/node_modules/@redwoodjs/testing/dist/customRender.js
      /Users/price/Repos/xx-delete/node_modules/@redwoodjs/testing/dist/index.js
      /Users/price/Repos/xx-delete/node_modules/@redwoodjs/core/dist/configs/browser/jest.setup.js

      at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:306:11)
      at Object.<anonymous> (../node_modules/@redwoodjs/testing/dist/MockRouter.js:31:14)
@thedavidprice thedavidprice added bug/confirmed We have confirmed this is a bug topic/testing labels Jan 13, 2021
@peterp
Copy link
Contributor

peterp commented Jan 13, 2021

This is fixed over here: redwoodjs/create-redwood-app@11780ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug topic/testing
Projects
None yet
Development

No branches or pull requests

2 participants