I have a question about mocking modules which are required as external modules from another browserify bundle.
Basically, I have one browserify bundle with my app code which exposes app modules to the second browserify bundle which contains tests. This second bundle is created by karma-browserify.
When I try to mock any app's external module from within the test bundle, I always get original non-mocked module.
Hi,
I have a question about mocking modules which are required as external modules from another browserify bundle.
Basically, I have one browserify bundle with my app code which exposes app modules to the second browserify bundle which contains tests. This second bundle is created by
karma-browserify
.When I try to mock any app's external module from within the test bundle, I always get original non-mocked module.
Do you have any ideas what to do with this issue?
Thanks in advance.
O.