Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

Commit fc60380

Browse files
committed
add test instructions dependency and scripts
1 parent 36e1d77 commit fc60380

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

template/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ available in the window['{{name}}'] variable.
2929

3030
`npm run serve`
3131

32+
## Tests
33+
34+
This template uses karma by default, you can change test settings in poi.config.js
35+
36+
`npm run test`
37+
`npm run test:watch`
38+
`npm run test:cov`
39+
3240
## License
3341

3442
This project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)

template/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"build": "poi build --format cjs",
1111
"build:umd": "poi build --format umd",
1212
"build:doc": "vue-styleguidist build",
13-
"serve": "vue-styleguidist server"
13+
"serve": "vue-styleguidist server",
14+
"test": "poi test",
15+
"test:watch": "poi test --watch",
16+
"test:cov": "poi test --coverage",
1417
},
1518
"keywords": [
1619
"vue",
@@ -28,6 +31,7 @@
2831
"eslint-plugin-vue": "beta",
2932
"node-glob": "^1.2.0",
3033
"poi": "^9.3.10",
34+
"poi-preset-karma": "^9.1.0",
3135
"vue-styleguidist": "^1.2.5",
3236
"vue-webpack-loaders": "^1.0.6",
3337
"webpack": "^3.1.0"

template/poi.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = {
1414
files: ['test/specs/**/*.spec.js'],
1515
browsers: ['PhantomJS'],
1616
frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
17-
coverage: true
1817
})
1918
]
2019
};

0 commit comments

Comments
 (0)