Skip to content

Commit 5893950

Browse files
build(config): add test scripts
1 parent 7a98e03 commit 5893950

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

config/grunt/sh.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
module.exports = (grunt) => {
2-
const continuous = grunt.option('continuous') === true;
3-
1+
module.exports = () => {
42
return {
53
'build': {
64
cmd: 'npm run build'
75
},
86
'test-unit': {
9-
cmd: `karma start config/karma/config-unit.js ${continuous ? '--concurrency Infinity' : '--single-run'}`
7+
cmd: 'npm run test:unit'
108
}
119
};
1210
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
"lint:test": "eslint --config config/eslint/test.json --ext .js --report-unused-disable-directives test/",
8686
"prepare": "husky",
8787
"prepublishOnly": "npm run build",
88-
"test": "npm run lint && grunt test"
88+
"test": "npm run lint && grunt test",
89+
"test:unit": "karma start config/karma/config-unit.js --single-run"
8990
},
9091
"types": "build/es2019/module.d.ts",
9192
"version": "8.1.62"

0 commit comments

Comments
 (0)