Skip to content

Commit 9b8fc16

Browse files
committed
Jest: --runInBand on Node 6
try fixing "Error parsing appveyor.yml" f var
1 parent 740e460 commit 9b8fc16

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ matrix:
1717
env: NO_WATCH_TESTS=1 JOB_PART=lint
1818
- os: linux
1919
node_js: "8"
20-
env: NO_WATCH_TESTS=1 JOB_PART=integration
20+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
2121
- os: linux
2222
node_js: "8"
2323
env: NO_WATCH_TESTS=1 JOB_PART=unit
2424
- os: linux
2525
node_js: "6"
26-
env: NO_WATCH_TESTS=1 JOB_PART=integration
26+
env: NO_WATCH_TESTS=1 JEST=--runInBand JOB_PART=integration
2727
- os: osx
2828
node_js: "8"
29-
env: NO_WATCH_TESTS=1 JOB_PART=integration
29+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
3030
allow_failures:
3131
- os: osx
3232
fast_finish: true

appveyor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ environment:
1616
job_part: unit
1717
- nodejs_version: 8
1818
job_part: integration
19+
jest: --maxWorkers=2
1920
- nodejs_version: 6
2021
job_part: integration
22+
jest: --runInBand
2123

2224
install:
2325
- ps: Install-Product node $env:nodejs_version x64
@@ -35,5 +37,6 @@ test_script:
3537
- node --version
3638
- npm --version
3739
- yarn --version
40+
- cmd: set JEST=%jest%
3841
- cmd: npm run appveyor:%job_part%
3942
- cmd: npm install -g codecov && codecov -F %job_part%

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696
"test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest",
9797
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
9898
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
99-
"travis:integration": "yarn cover:init && yarn cover:integration --ci --maxWorkers 2 && yarn cover:report-min",
99+
"travis:integration": "yarn cover:init && yarn cover:integration --ci $JEST && yarn cover:report-min",
100100
"travis:unit": "yarn cover:init && yarn cover:unit --ci",
101101
"travis:lint": "yarn lint",
102102
"travis:benchmark": "yarn benchmark --ci",
103-
"appveyor:integration": "yarn cover:init && yarn cover:integration --ci --maxWorkers 2 && yarn cover:report-min",
103+
"appveyor:integration": "yarn cover:init && yarn cover:integration --ci %JEST% && yarn cover:report-min",
104104
"appveyor:unit": "yarn cover:init && yarn cover:unit --ci && yarn cover:report-min",
105105
"appveyor:benchmark": "yarn benchmark --ci",
106106
"circleci:test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --ci",

0 commit comments

Comments
 (0)