Skip to content

Commit 9be904d

Browse files
committed
feat(package): add test:client script
1 parent 8f55a8c commit 9be904d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: templates/app/_package.json

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
},
215215
"scripts": {
216216
"test": "gulp test",
217+
"test:client": "karma start ./karma.conf.js --single-run",
217218
<%_ if(filters.flow) { -%>
218219
"flow": "flow",
219220
<%_ } -%>

Diff for: templates/app/karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// http://karma-runner.github.io/0.13/config/configuration-file.html
33
/*eslint-env node*/
44

5-
import makeWebpackConfig from './webpack.make';
5+
const makeWebpackConfig = require('./webpack.make');
66

77
module.exports = function(config) {
88
config.set({

0 commit comments

Comments
 (0)