Repair npm run test
This commit is contained in:
committed by
Evgeny Arshinov
parent
77f2466f17
commit
268534b3e1
@@ -65,6 +65,7 @@
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"scripts": [],
|
||||
"styles": [],
|
||||
"tsConfig": "demo/src/tsconfig.json",
|
||||
"assets": [
|
||||
"demo/src/assets"
|
||||
]
|
||||
@@ -111,4 +112,4 @@
|
||||
"prefix": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,26 +13,18 @@ module.exports = function (config) {
|
||||
require('karma-coverage-istanbul-reporter'),
|
||||
require('@angular-devkit/build-angular/plugins/karma')
|
||||
],
|
||||
files: [
|
||||
{pattern: './scripts/test.ts', watched: false}
|
||||
],
|
||||
preprocessors: {
|
||||
'./scripts/test.ts': ['@angular-devkit/build-angular']
|
||||
},
|
||||
coverageIstanbulReporter: {
|
||||
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
|
||||
fixWebpackSourcePaths: false
|
||||
},
|
||||
|
||||
reporters: config.angularCli && config.angularCli.codeCoverage
|
||||
? ['dots', 'coverage-istanbul']
|
||||
: ['dots'],
|
||||
|
||||
reporters: ['dots', 'coverage-istanbul'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
singleRun: false,
|
||||
singleRun: true,
|
||||
customLaunchers: {
|
||||
Chrome_travis_ci: {
|
||||
base: 'Chrome',
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
"build.watch": "ngm build -p src --watch --skip-bundles",
|
||||
"start": "ng serve --aot",
|
||||
"pretest": "run-s lint build link",
|
||||
"test": "ng test -sr",
|
||||
"test-coverage": "ng test -sr -cc",
|
||||
"test": "ng test",
|
||||
"test-coverage": "ng test --code-coverage",
|
||||
"version": "npm run flow.changelog && git add -A"
|
||||
},
|
||||
"main": "bundles/ng2-file-upload.umd.js",
|
||||
|
||||
Reference in New Issue
Block a user