forked from vitest-dev/vitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vitest): add propagation of testOptions from describe section to …
…all tests inside close: vitest-dev#1998
- Loading branch information
golebiowskib
committed
Sep 11, 2022
1 parent
08feae1
commit 79e2787
Showing
5 changed files
with
69 additions
and
14 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
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,15 @@ | ||
import { describe, expect, it } from 'vitest' | ||
|
||
describe.only('description.only retry', () => { | ||
let count4 = 0 | ||
let count5 = 0 | ||
it('test should inherit options from the description block if missing', () => { | ||
count4 += 1 | ||
expect(count4).toBe(2) | ||
}) | ||
|
||
it('test should not inherit options from the description block if exists', () => { | ||
count5 += 1 | ||
expect(count5).toBe(5) | ||
}, { retry: 5 }) | ||
}, { retry: 2 }) |
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