DEV Community

Discussion on: πŸš€ES6 MODULES 101 #1πŸš€

Collapse
 
micronaut profile image
Eric Danowski

We currently use IIFEs but I am trying to move to ES6 modules. The problem I am running into is for testing, how do you mock/spy/stub a module that the module under test is importing? We use Jasmine with Karma. I've tried a couple of babel plugins to rewire the modules to allow spying/stubbing but I'm wondering what other people are using? Thanks!