Skip to content

Commit 651c24e

Browse files
committed
updated testing to allow disabling tear down of servers, and remove parallelism in tests
1 parent 4d88ce6 commit 651c24e

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy_alpha.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
run: npm run test:integration
3636

3737
test-functional:
38+
needs: [test-integration]
3839
runs-on: ubuntu-latest
3940
steps:
4041
- uses: actions/checkout@v4

.github/workflows/deploy_pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: npm run test:integration
3333

3434
test-functional:
35+
needs: [test-integration]
3536
runs-on: ubuntu-latest
3637
steps:
3738
- uses: actions/checkout@v4

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010
"scripts": {
1111
"build": "tsc",
1212
"test": "jest -c jest.config.ts",
13+
"test:no-teardown": "TESTCONTAINERS_RYUK_DISABLED=true jest -c jest.config.ts",
1314
"test:unit": "jest -c jest.config.unit.ts",
14-
"test:integration": "jest -c jest.config.integration.ts",
15-
"test:functional": "jest -c jest.config.functional.ts",
15+
"test:integration": "jest --runInBand -c jest.config.integration.ts",
16+
"test:integration:no-teardown": "TESTCONTAINERS_RYUK_DISABLED=true jest --runInBand -c jest.config.integration.ts",
17+
"test:functional": "jest --runInBand -c jest.config.functional.ts",
18+
"test:functional:no-teardown": "TESTCONTAINERS_RYUK_DISABLED=true jest --runInBand -c jest.config.functional.ts",
1619
"test:coverage": "jest --coverage -c jest.config.ts",
20+
"test:coverage:no-teardown": "TESTCONTAINERS_RYUK_DISABLED=true jest --coverage -c jest.config.ts",
1721
"test:coverage:check": "jest --coverage --ci --config jest.config.ts",
22+
"test:coverage:check:no-teardown": "TESTCONTAINERS_RYUK_DISABLED=true jest --coverage --ci --config jest.config.ts",
1823
"lint": "npm run lint:eslint && npm run lint:prettier",
1924
"lint:fix": "eslint --fix --ext .ts ./src --ignore-path .gitignore .",
2025
"lint:eslint": "eslint --ignore-path .gitignore .",

0 commit comments

Comments
 (0)