Skip to content

Conversation

@exogen
Copy link
Contributor

@exogen exogen commented Dec 12, 2018

  • It would be nice to allow Jest config presets to offer this feature without users actually needing Next.js installed in every project. This uses virtual: true on the mock so that it's harmless if used in a package without next.
  • Empty out mockInitializers before running any preload, for more bulletproof capturing of any newly loaded components.

@exogen exogen merged commit 3327e62 into master Dec 12, 2018
@exogen exogen deleted the feature/virtual-mock branch December 12, 2018 18:03
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

Successfully merging this pull request may close these issues.

2 participants