Skip to content

Commit 2e6f3c6

Browse files
authored
Vitest: continue after failing test (#711)
Like in pytest, we should be running all the tests before reporting test results. Currently, vitest finishes after 1 test has failed, this could cause confusion if your new test should be running after the failing one.
1 parent 0a4ffb0 commit 2e6f3c6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/js-sdk/vitest.workspace.mts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineWorkspace([
1111
globals: false,
1212
testTimeout: 30_000,
1313
environment: 'node',
14-
bail: 1,
14+
bail: 0,
1515
server: {},
1616
deps: {
1717
interopDefault: true,
@@ -28,12 +28,12 @@ export default defineWorkspace([
2828
browser: {
2929
enabled: true,
3030
headless: true,
31-
instances: [{browser: 'chromium'}],
31+
instances: [{ browser: 'chromium' }],
3232
provider: 'playwright',
3333
// https://playwright.dev
3434
},
3535
provide: {
36-
E2B_API_KEY: process.env.E2B_API_KEY || env.parsed.E2B_API_KEY,
36+
E2B_API_KEY: process.env.E2B_API_KEY || env.parsed?.E2B_API_KEY,
3737
},
3838
},
3939
},
@@ -53,4 +53,3 @@ export default defineWorkspace([
5353
},
5454
},
5555
])
56-

0 commit comments

Comments
 (0)