Skip to content

Commit 647a7ad

Browse files
committed
chore(package): only run tests offline
1 parent 07ec826 commit 647a7ad

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.nyc_output/
2+
/coverage/
13
/node_modules/
2-
token
3-
tmp
4+
yarn-error.log

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@
4747
"jscs": "^2.0.0",
4848
"jshint": "^2.9.1",
4949
"mocha": "*",
50+
"nyc": "^10.3.2",
5051
"shelljs": "^0.6.0"
5152
},
5253
"scripts": {
5354
"coverage": "istanbul cover _mocha -- -R spec --timeout 50000 && rm -rf ./coverage",
5455
"lint": "jshint *.js test --exclude node_modules && jscs *.js test",
55-
"test": "npm run-script lint && mocha --timeout 50000"
56+
"formertest": "npm run-script lint && mocha --timeout 50000",
57+
"test": "jshint lib/ && jscs lib/ && nyc --all --cache --include=lib/ --exclude=lib/**/*.spec.js --reporter=lcov --reporter=text mocha --check-leaks --full-trace --globals __core-js_shared__,__coverage__,YamlEscaper --inline-diffs --no-exit --recursive --reporter=progress --retries 1 lib/**/*.spec.js"
5658
},
5759
"bin": {
5860
"conventional-github-releaser": "cli.js"

0 commit comments

Comments
 (0)