aws-sdk-mock
aws-sdk-mock copied to clipboard
Error on call to require()
When I include this line in my test:
var AWS = require('aws-sdk-mock');
I get this error:
12 12 2017 20:42:18.283:DEBUG [phantomjs.launcher]: TypeError: undefined is not an object (evaluating 'modules[moduleId].call') 12 12 2017 20:42:18.284:DEBUG [phantomjs.launcher]: http://localhost:9876/base/src/components/abc.test.js?b3ed477b424200c3998436df9179685bd8afc96e:20 in webpack_require :17 in loadDependencies
This is a cordova app running Vue.js. I'm using karma with mocha for my unit tests. It's being bundled by webpack.
I'm using [email protected]
.
@dland512 did you solve this problem ?
No, I never did.