mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-27 20:36:33 -04:00
Fix sourcemaps on karma for debug
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test-travis": "./node_modules/.bin/karma start ./test/karma.conf.js --single-run --browsers chromeTravisCI && ./node_modules/.bin/eslint ./",
|
||||
"test": "./node_modules/.bin/karma start ./test/karma.conf.js --no-single-run",
|
||||
"test-debug": "export DEBUG=true; ./node_modules/.bin/karma start ./test/karma.conf.js --no-single-run",
|
||||
"test": "./node_modules/.bin/karma start ./test/karma.conf.js --single-run",
|
||||
"lint": "./node_modules/.bin/eslint ./",
|
||||
"build": "gulp"
|
||||
},
|
||||
|
||||
+8
-2
@@ -22,7 +22,11 @@ module.exports = function(config) {
|
||||
'deamdify',
|
||||
[
|
||||
'browserify-istanbul',
|
||||
{ ignore: ['**/test/**', '**/src/scripts/vendor/**'] }
|
||||
{
|
||||
ignore: process.env.DEBUG ?
|
||||
['**/**'] :
|
||||
['**/test/**', '**/src/scripts/vendor/**']
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
@@ -46,7 +50,9 @@ module.exports = function(config) {
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['mocha', 'coverage', 'threshold'],
|
||||
reporters: process.env.DEBUG ?
|
||||
['mocha'] :
|
||||
['mocha', 'coverage', 'threshold'],
|
||||
|
||||
// optionally, configure the reporter
|
||||
coverageReporter: {
|
||||
|
||||
Reference in New Issue
Block a user