-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5efd66
commit de6488c
Showing
2 changed files
with
19 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const vitest = require('vitest'); | ||
|
||
describe('global expect', () => { // Compliant | ||
it('is recognized as an assertion', () => { | ||
expect(5).toEqual(5); | ||
}); | ||
}); | ||
|
||
describe('global non-supported symbol', () => { // Compliant | ||
it('is not recognized as an assertion', () => { // Noncompliant | ||
foo(5).toEqual(5); | ||
}); | ||
}); | ||
|
||
describe.concurrent('expect called inside describe.concurrent scope', () => { // Compliant | ||
it('is recognized as an assertion', async ({ expect }) => { | ||
expect(5).toEqual(5); | ||
}); | ||
}); |
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