Skip to content

Commit e7f3fc4

Browse files
committed
Refactor tests
- Use puppeteer instead of zombie - Extract docs generation into a script
1 parent f389dea commit e7f3fc4

File tree

3 files changed

+376
-217
lines changed

3 files changed

+376
-217
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@
1717
"url": "git+ssh://[email protected]/bit-docs/bit-docs-tag-demo.git"
1818
},
1919
"scripts": {
20+
"generate": "node test/generate",
21+
"preversion": "npm test",
22+
"postversion": "git push --tags && git push",
2023
"release:major": "npm version major && npm publish",
2124
"release:minor": "npm version minor && npm publish",
2225
"release:patch": "npm version patch && npm publish",
2326
"release:pre": "npm version prerelease && npm publish",
24-
"test": "mocha test.js --reporter spec",
25-
"preversion": "npm test",
26-
"postversion": "git push --tags && git push"
27+
"test": "npm run generate && mocha test.js"
2728
},
2829
"devDependencies": {
2930
"bit-docs-generate-html": "0.5.0-pre.4",
3031
"can-stache": "3.7.2",
31-
"express": "^4.15.2",
32+
"express": "^4.16.2",
3233
"mocha": "^3.2.0",
33-
"rimraf": "^2.6.1",
34+
"puppeteer": "^0.13.0",
3435
"steal": "^1.4.6",
35-
"steal-less": "^1.2.0",
36-
"zombie": "^5.0.5"
36+
"steal-less": "^1.2.0"
3737
},
3838
"steal": {
3939
"plugins": [

0 commit comments

Comments
 (0)