Skip to content

Commit bb3d33f

Browse files
committed
even slimmer and also avoid parallel test port conflicts
1 parent cdefb09 commit bb3d33f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
- run: npm install -g pnpm
4646
- run: pnpm install
4747
- run: pnpm build
48-
- run: pnpm test
48+
- run: pnpm test --runInBand

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-proxy-3",
3-
"version": "1.19.10",
3+
"version": "1.19.11",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/sagemathinc/http-proxy-3.git"
@@ -50,7 +50,7 @@
5050
"clean": "rm -rf dist node_modules",
5151
"build": "pnpm exec tsc --build .tsconfig-bootstrap.json && pnpm exec tsc --build",
5252
"tsc": "pnpm exec tsc --watch --pretty --preserveWatchOutput",
53-
"prepublishOnly": "pnpm audit && pnpm test && rm dist/*.tsbuildinfo && rm -rf dist/test"
53+
"prepublishOnly": "pnpm audit && pnpm test --runInBand && rm -f dist/*.tsbuildinfo && rm -rf dist/test"
5454
},
5555
"engines": {
5656
"node": ">=20.0.0"

test/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
A note about ports. These tests use a large number of ports and are run in
22
parallel. There will sometimes be failures sometimes due to a port conflict
33
between different tests being run at the same time.
4+
5+
Use `pnpm test --runInBand` to avoid this by running the tests in serial. This
6+
is good for CI and release testing. Just use `pnpm test` for dev, since it's
7+
much faster.

0 commit comments

Comments
 (0)