I'm coming from the frontend world, mostly Vue, and I want to write some tests, for example a few that mock axios, now since Node uses require() instead of import(), I'm having some trouble translating examples, since most examples are written using the import methodIs Jest the right way to go for Node?Can I use all the mock functions using require() instead of import()?Any help would be greatly appreciated!
Submitted July 14, 2020 at 09:16PM by pilfton
No comments:
Post a Comment