You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using webpack with karma, with Alternative usage configured. How can I enable the line where the error is?
Useful information:
webpack.config
devtool: 'inline-source-map'
karma.config
var path = require('path');
var webpackConfig = require('./webpack.config');
var entry = path.resolve(webpackConfig.entry.bundle);
var preprocessors = {};
preprocessors[entry] = ['webpack', 'sourcemap'];
module.exports = function(config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'sinon-chai'],
reporters: ['mocha'],
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: false,
colors: true,
port: 9876,
basePath: '',
files: [
entry,
'node_modules/chai-angular/chai-angular.js'
],
// list of files to exclude
exclude: [],
webpack : webpackConfig,
preprocessors: preprocessors,
concurrency: Infinity,
// omit plugins to allow automatic inclusion
// plugins :[]
})
Actual result:
FAILED TESTS:
The AdNetworks Data Service
when the service is accessed
✖ reloads networks from the api and also returns a promise
PhantomJS 2.1.1 (Mac OS X 0.0.0)
expected [ Array(4) ] to be a resource and deeply equal [ Array(4) ], but was [ Array(4) ]
✖ reloads networks and transforms data properly
PhantomJS 2.1.1 (Mac OS X 0.0.0)
expected false to be true
Expected a result with in which line the error has occurred, like
It seems that this mostly had to do with the mocha reporter, but this is from so long ago that I can't triage. If you are still having this problem by chance, feel free to open another issue with the current information and I'll be happy to assist!
I am using webpack with karma, with Alternative usage configured. How can I enable the line where the error is?
Useful information:
webpack.config
karma.config
Actual result:
Expected a result with in which line the error has occurred, like
Thanks!
The text was updated successfully, but these errors were encountered: