Skip to content

Commit 167b782

Browse files
committed
refactor Jasmine and update ignore files
1 parent 519725b commit 167b782

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules/
22
coverage/
3-
.nyc_output/
43
lib/
54
*.js
65
*.map

.npmignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
node_modules/
22
coverage/
3-
spec/
43
src/
5-
.nyc_output/
64
*.spec.*
7-
.nycrc.json
5+
*.json
86
*.npm-access-token.txt
+6-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
2-
"spec_dir": "spec",
2+
"spec_dir": "lib",
33
"spec_files": [
4-
"**/*[sS]pec.?(m)js"
4+
"**/*[sS]pec.?(m)js",
5+
"!**/*nospec.js"
56
],
67
"helpers": [
78
"helpers/**/*.?(m)js"
89
],
910
"env": {
11+
"failSpecWithNoExpectations": false,
1012
"stopSpecOnExpectationFailure": false,
13+
"stopOnSpecFailure": false,
1114
"random": true
1215
}
13-
}
16+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "./lib/async-status.d.js",
77
"scripts": {
88
"transpile": "tsc",
9-
"test": "tsc --outDir ./spec && jasmine",
9+
"test": "npm run transpile && jasmine --config=./jasmine.json",
1010
"coverage": "nyc -t coverage npm run test",
1111
"build": "npm run transpile && npm run coverage",
1212
"login": "npm login",

0 commit comments

Comments
 (0)