Skip to content

whatwg-fetch and breaking boilerplate tests through yarn rw tests #1581

@coolsoftwaretyler

Description

@coolsoftwaretyler

Hey everyone, I see this has come up a few times before, notably in #1264

I am still getting these errors even after running yarn rw upgrade about five minutes ago.

yarn rw test is failing with this error:

  ● Test suite failed to run

    Cannot find module 'whatwg-fetch' from '../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/core/dist/configs/browser/jest.setup.js:5:1)

Looks like I'm running v0.21.0. All of my web tests are failing, including the boilerplate ones from running the page generator like: yarn rw g page home. API tests are all fine.

Are there additional steps I need to take in upgrading, beyond yarn rw upgrade? Or is something still broken here? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions