Skip to content

Commit

Permalink
Update to Jest 28
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Apr 28, 2022
1 parent 782fd71 commit ccb993e
Show file tree
Hide file tree
Showing 13 changed files with 5,462 additions and 3,564 deletions.
8 changes: 0 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,6 @@
}]
}
},
{
"files": [
"packages/jest-parallel-sequencer/**/*.js"
],
"env": {
"node": true
}
},
{
"files": [
"__mocks__/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
if: ( matrix.snapshots ) && ( github.event.pull_request.draft == false )

- name: Run E2E tests with percy
run: npm run test:e2e:percy
run: npm run test:e2e:percy -- --shard=$SHARD
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_E2E }}
WP_VERSION: ${{ matrix.wp }}
Expand All @@ -183,7 +183,7 @@ jobs:
if: ( matrix.snapshots ) && ( github.event.pull_request.draft == false )

- name: Run E2E tests
run: npm run test:e2e
run: npm run test:e2e -- --shard=$SHARD
env:
WP_VERSION: ${{ matrix.wp }}
SHARD: ${{ matrix.shard }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-unit-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

- name: Run JavaScript unit tests
run: npm run test:js -- --runInBand --ci --cacheDirectory="$HOME/.jest-cache" --collectCoverage
run: npm run test:js -- --runInBand --ci --cacheDirectory="$HOME/.jest-cache" --collectCoverage --shard=$SHARD
env:
SHARD: ${{ matrix.shard }}

Expand Down

0 comments on commit ccb993e

Please sign in to comment.