Skip to content

How can I reuse a mock of a module from node_module ? #5316

Answered by sheremet-va
robbporto asked this question in Q&A
Discussion options

You must be logged in to vote

You can put the mock statement in a file and make sure to always import it first before other imports

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@robbporto
Comment options

@sheremet-va
Comment options

@robbporto
Comment options

Answer selected by robbporto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants