Replies: 1 comment
-
let bail = false;
beforeEach((ctx) => {
if (bail) {
ctx.skip();
}
})
afterEach((ctx) => {
if (ctx.task.result?.state === "fail") {
bail = true;
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I've implemented my e2e tests using vitest and set
bail: 1
is there any way to scope the bail to the file where failure occurs? currently when a failure occurs in any of the e2e test files, all e2e tests will finish the current test and then bail
i only want the file with the failure to bail
Beta Was this translation helpful? Give feedback.
All reactions