So I was just trying to use chai-as-promised with karma and webpack and this is what I get.
I have chai-as-promised, karma-chai-as-promised, sinon-chai, karma-sinon-chai, karma-webpack installed so i should be good to go yet it doesn't work
here is my karma.config file
var webpackConfig = require('../../build/webpack.test.conf')
module.exports = function (config) {
config.set({
browsers: ['ChromeHeadless'],
frameworks: ['mocha', 'chai-things', 'sinon-chai', 'chai-as-promised'],
reporters: ['spec', 'coverage'],
files: [
'../../node_modules/babel-polyfill/dist/polyfill.js',
'./index.js'],
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
coverageReporter: {
dir: './coverage',
reporters: [
{ type: 'lcov', subdir: '.' },
{ type: 'text-summary' }
]
},
client: {
captureConsole: true
}
})
}