【发布时间】:2017-01-22 18:37:42
【问题描述】:
我对 assertion 跟踪有疑问 - 它们提供的信息不足。
例如assertion fault:
should navigate inside of layout
PhantomJS 2.1.1 (Linux 0.0.0)
1) serialize@http://localhost:9876/base/node_modules/mocha/mocha.js?0491afff0b566ea45cd04c9164a355dba705689e:10776:34
processAssertionError@node_modules/karma-mocha/lib/adapter.js:59:50
node_modules/karma-mocha/lib/adapter.js:129:49
我已经尝试过karma-sourcemap-loader,但它不会影响我的输出。
我的配置:
frameworks: ['mocha', 'chai', 'source-map-support', 'browserify'],
files: [
'tests/**/*.js'
],
browserify: {
debug: true
},
preprocessors: {
'tests/**/*.js': ['browserify']
},
reporters: ['progress', 'nyan'],
有什么想法吗?
【问题讨论】: