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

Auto enabling in jest config #181

Open
JPeer264 opened this issue Oct 20, 2020 · 1 comment
Open

Auto enabling in jest config #181

JPeer264 opened this issue Oct 20, 2020 · 1 comment

Comments

@JPeer264
Copy link

It would be nice to have an autoimport in the jest config file like jest-localstorage-mock got it here.

Current config:

{
  setupFiles: ['./anySetup.js']
}

Expected config:

{
  setupFiles: ['jest-fetch-mock']
}

I didn't look into that any closer how to implement (maybe just a default export of a function), but I could go for a PR if that is a valid improvement.

@JPeer264
Copy link
Author

Seems like this already works.

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

1 participant