Skip to content

Commit 7051d5e

Browse files
fix: use @babel/polyfill in tests
1 parent e2a4808 commit 7051d5e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"description": "Buffer an AsyncIterator before iteration.",
1010
"devDependencies": {
1111
"@babel/core": "^7.0.0-beta.49",
12+
"@babel/polyfill": "^7.0.0-beta.49",
1213
"@babel/preset-env": "^7.0.0-beta.49",
1314
"@babel/preset-flow": "^7.0.0-beta.49",
1415
"@commitlint/cli": "^7.0.0",
@@ -28,7 +29,8 @@
2829
"jest": "^23.1.0",
2930
"lint-staged": "^7.1.3",
3031
"prettier": "1.13.4",
31-
"rimraf": "^2.6.2"
32+
"rimraf": "^2.6.2",
33+
"semantic-release": "^15.5.0"
3234
},
3335
"engines": {
3436
"node": ">=6"
@@ -49,7 +51,8 @@
4951
"lint": "flow && eslint . && prettier --l \"{__tests__,src}/**/*.js\"",
5052
"test": "yarn test:src && yarn build && yarn test:dist",
5153
"test:src": "jest --config scripts/jest/config.source.js",
52-
"test:dist": "jest --config scripts/jest/config.dist.js"
54+
"test:dist": "jest --config scripts/jest/config.dist.js",
55+
"semantic-release": "semantic-release"
5356
},
54-
"version": "0.0.0-semantic-release"
57+
"version": "0.0.0-development"
5558
}

scripts/jest/config.source.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
collectCoverageFrom: ['src/**/*.js', '!src/{index,types}.js'],
33
rootDir: process.cwd(),
4+
setupFiles: ['@babel/polyfill'],
45
testEnvironment: 'node',
56
testMatch: ['**/*.test.js'],
67
};

0 commit comments

Comments
 (0)