Skip to content

Commit 7981847

Browse files
build(config): add test scripts
1 parent afff916 commit 7981847

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/grunt/sh.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
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-integration': {
9-
cmd: `karma start config/karma/config-integration.js ${continuous ? '--concurrency Infinity' : '--single-run'}`
7+
cmd: 'npm run test:integration'
108
},
119
'test-unit': {
12-
cmd: `karma start config/karma/config-unit.js ${continuous ? '--concurrency Infinity' : '--single-run'}`
10+
cmd: 'npm run test:unit'
1311
}
1412
};
1513
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
"lint:test": "eslint --config config/eslint/test.json --ext .js --report-unused-disable-directives test/",
8181
"prepare": "husky",
8282
"prepublishOnly": "npm run build",
83-
"test": "npm run lint && grunt test"
83+
"test": "npm run lint && grunt test",
84+
"test:integration": "karma start config/karma/config-integration.js --single-run",
85+
"test:unit": "karma start config/karma/config-unit.js --single-run"
8486
},
8587
"types": "build/es2019/module.d.ts",
8688
"version": "7.1.60"

0 commit comments

Comments
 (0)