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

Commit 36e1d77

Browse files
committed
add poi preset karma
1 parent b6fd05e commit 36e1d77

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

template/poi.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const presetKarma = require('poi-preset-karma');
12
const glob = require('glob').sync;
23
const {name} = require('./package.json');
34

@@ -7,5 +8,13 @@ module.exports = {
78
js: name + '.min.js',
89
},
910
sourceMap: false,
10-
html: false
11+
html: false,
12+
presets: [
13+
presetKarma({
14+
files: ['test/specs/**/*.spec.js'],
15+
browsers: ['PhantomJS'],
16+
frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
17+
coverage: true
18+
})
19+
]
1120
};

0 commit comments

Comments
 (0)