-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(runner): guard test hook callback (#6604)
- Loading branch information
1 parent
7e26235
commit 1497134
Showing
6 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { describe, test, afterAll } from 'vitest'; | ||
|
||
describe('afterAll hooks fail', () => { | ||
// @ts-ignore expects a function | ||
afterAll('fail') | ||
test.todo('todo') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { afterEach, describe, test } from 'vitest'; | ||
|
||
describe('afterEach hooks fail', () => { | ||
// @ts-ignore expects a function | ||
afterEach('fail') | ||
test.todo('todo') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { beforeAll, describe, test } from 'vitest'; | ||
|
||
describe('beforeAll hooks fail', () => { | ||
// @ts-ignore expects a function | ||
beforeAll('fail') | ||
test.todo('todo') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { beforeEach, describe, test } from 'vitest'; | ||
|
||
describe('beforeEach hooks fail', () => { | ||
// @ts-ignore expects a function | ||
beforeEach('fail') | ||
test.todo('todo') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters