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

Add "fetch-ponyfill" polyfill to enzyme test stuite configuration #47

Open
nwalberts opened this issue Feb 4, 2019 · 1 comment
Open

Comments

@nwalberts
Copy link
Contributor

The enzyme test suite needs a polyfill for some standard JS objects (fetch, Request, Response, etc) in order to use the fetch-mock library.

  • add fetch-ponyfill to package.json file
  • import http objects into test helper file and assign to global test environment

This is the doc that was used for Bos-23 to get them up to speed on their projects (see the bottom)
https://gist.github.com/nwalberts/2e8d050d6037d0a1b549e9467bb077c9

@dpickett
Copy link
Member

dpickett commented Sep 2, 2019

@nwalberts can you confirm these are still actionable? I'm thinking that even with the jest migration, we will need to enact these changes.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants