@@ -5,33 +5,33 @@ runRuleTester('expect-expect', rule, {
5
5
invalid : [
6
6
{
7
7
code : 'test("should fail", () => {});' ,
8
- errors : [ { messageId : 'noAssertions' } ] ,
8
+ errors : [ { messageId : 'noAssertions' , type : 'Identifier' } ] ,
9
9
} ,
10
10
{
11
11
code : 'test.skip("should fail", () => {});' ,
12
- errors : [ { messageId : 'noAssertions' } ] ,
12
+ errors : [ { messageId : 'noAssertions' , type : 'MemberExpression' } ] ,
13
13
} ,
14
14
{
15
15
code : javascript `
16
16
test ( 'should fail' , async ( { page } ) => {
17
17
await assertCustomCondition ( page )
18
18
} )
19
19
` ,
20
- errors : [ { messageId : 'noAssertions' } ] ,
20
+ errors : [ { messageId : 'noAssertions' , type : 'Identifier' } ] ,
21
21
} ,
22
22
{
23
23
code : javascript `
24
24
test ( 'should fail' , async ( { page } ) => {
25
25
await assertCustomCondition ( page )
26
26
} )
27
27
` ,
28
- errors : [ { messageId : 'noAssertions' } ] ,
28
+ errors : [ { messageId : 'noAssertions' , type : 'Identifier' } ] ,
29
29
name : 'Custom assert function' ,
30
30
options : [ { assertFunctionNames : [ 'wayComplexCustomCondition' ] } ] ,
31
31
} ,
32
32
{
33
33
code : 'it("should pass", () => hi(true).toBeDefined())' ,
34
- errors : [ { messageId : 'noAssertions' } ] ,
34
+ errors : [ { messageId : 'noAssertions' , type : 'Identifier' } ] ,
35
35
name : 'Global aliases' ,
36
36
settings : {
37
37
playwright : {
0 commit comments