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

jest.mock example #6

Open
3 tasks
nponeccop opened this issue Apr 15, 2021 · 0 comments
Open
3 tasks

jest.mock example #6

nponeccop opened this issue Apr 15, 2021 · 0 comments

Comments

@nponeccop
Copy link

Now that the upstream Jest has some ESM support, there is slightly less need in the esm transform. But their current level of support in jest@next doesn't allow for mocking certain module types.

Can you add some jest.mock examples?

  • mocking fs using memfs (built-in modules + nontrivial factory)
  • and/or mocking axios requests ("normal" NPM modules)
  • snappy or other module with native components
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