Skip to content

Commit 55afe8a

Browse files
committed
feat(test): add promise polyfill in client tests
1 parent c079e2c commit 55afe8a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

template/gulp-tasks/test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ gulp.task('test:server', () => {
1414

1515
gulp.task('test:client', (done) => {
1616
new Server({
17-
files: [path.resolve(dirs.testClient, '**/*.test.js')],
17+
files: [
18+
'node_modules/babel-polyfill/dist/polyfill.js',
19+
path.resolve(dirs.testClient, '**/*.test.js'),
20+
],
1821
configFile: path.resolve(dirs.test, 'karma.conf.js'),
1922
singleRun: true,
2023
}, done).start();

template/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"babel-core": "^6.25.0",
27+
"babel-polyfill": "^6.26.0",
2728
"babel-preset-es2015": "^6.24.1",
2829
"babelify": "^7.3.0",
2930
"browserify": "^14.4.0",

0 commit comments

Comments
 (0)