Skip to content

Commit 04fd73c

Browse files
authored
build(ci): Compensated for node GC crash issue during tests
1 parent f854433 commit 04fd73c

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ ubuntu-latest, windows-latest ]
11-
node-version: [ 16.x, 18.x ]
11+
# Node 16.10 due to https://github.com/facebook/jest/issues/11956
12+
node-version: [ 16.10.x, 18.x ]
1213

1314
steps:
1415
- name: Checkout
@@ -38,6 +39,6 @@ jobs:
3839
run: yarn build
3940

4041
- name: Test
41-
run: yarn test
42+
run: yarn test --runInBand=false --maxWorkers=2 --workerIdleMemoryLimit=1700MB # https://github.com/facebook/jest/issues/11956
4243
env:
4344
CI: true

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
"@types/jest": "^29.2.0",
5656
"@types/minimatch": "^5.1.2",
5757
"@types/node": "^18.11.2",
58-
"jest": "^29.2.1",
58+
"jest": "^29.3.1",
5959
"prettier": "^2.7.1",
6060
"rimraf": "^3.0.2",
6161
"standard-version": "^9.5.0",
62-
"@types/ts-expose-internals": "npm:ts-expose-internals@4.8.4",
62+
"@types/ts-expose-internals": "npm:ts-expose-internals@4.9.4",
6363
"ts-jest": "^29.0.3",
6464
"ts-node": "^10.9.1",
6565
"ts-patch": "^2.1.0",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,10 @@
701701
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
702702
integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==
703703

704-
"@types/ts-expose-internals@npm:ts-expose-internals@4.8.4":
705-
version "4.8.4"
706-
resolved "https://registry.yarnpkg.com/ts-expose-internals/-/ts-expose-internals-4.8.4.tgz#7bb1ef4ef0b42a22f4430f6e2b89fffc9fa6e7d1"
707-
integrity sha512-DhGmD9ijXQ+2Zdz+MhVMKZIGFHx4imaHln1l+q8Bd7vNK2iuXRD88UujrJ7VEDZhI5mAr5gwrkQW0d3Wl9EsGw==
704+
"@types/ts-expose-internals@npm:ts-expose-internals@4.9.4":
705+
version "4.9.4"
706+
resolved "https://registry.yarnpkg.com/ts-expose-internals/-/ts-expose-internals-4.9.4.tgz#d7836b0ecd174af17ba0038c0840efa5a2d21654"
707+
integrity sha512-qHR+gMYDv45VSikUwg7CG8NXXXED2EspZ/WnZN1eQJEIlyzUHw3YIrzrKv47NQCaXKGvp01kZFlQ3y8BCGTahw==
708708

709709
"@types/yargs-parser@*":
710710
version "21.0.0"
@@ -2120,7 +2120,7 @@ jest-worker@^29.3.1:
21202120
merge-stream "^2.0.0"
21212121
supports-color "^8.0.0"
21222122

2123-
jest@^29.2.1:
2123+
jest@^29.3.1:
21242124
version "29.3.1"
21252125
resolved "https://registry.yarnpkg.com/jest/-/jest-29.3.1.tgz#c130c0d551ae6b5459b8963747fed392ddbde122"
21262126
integrity sha512-6iWfL5DTT0Np6UYs/y5Niu7WIfNv/wRTtN5RSXt2DIEft3dx3zPuw/3WJQBCJfmEzvDiEKwoqMbGD9n49+qLSA==

0 commit comments

Comments
 (0)