File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 82
82
"testing-library/no-debugging-utils" : " off" ,
83
83
"testing-library/no-dom-import" : " off" ,
84
84
"testing-library/no-unnecessary-act" : " off" ,
85
+ "testing-library/prefer-explicit-assert" : " off" ,
86
+ "testing-library/prefer-find-by" : " off" ,
85
87
"testing-library/prefer-user-event" : " off"
86
88
}
87
89
},
Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ describe.each([
61
61
62
62
test ( 'waitFor' , async ( ) => {
63
63
render ( < ComponentWithMacrotaskLoader /> )
64
- // eslint-disable-next-line testing-library/prefer-find-by -- Sir, this is a test.
65
64
await waitFor ( ( ) => screen . getByText ( / L o a d i n g ../ ) )
66
- // eslint-disable-next-line testing-library/prefer-find-by -- Sir, this is a test.
67
65
await waitFor ( ( ) => screen . getByText ( / L o a d e d t h i s m e s s a g e : / ) )
68
66
expect ( screen . getByTestId ( 'message' ) ) . toHaveTextContent ( / H e l l o W o r l d / )
69
67
} )
@@ -130,11 +128,9 @@ describe.each([
130
128
test ( 'waitFor' , async ( ) => {
131
129
render ( < ComponentWithMicrotaskLoader /> )
132
130
await waitFor ( ( ) => {
133
- // eslint-disable-next-line testing-library/prefer-explicit-assert -- Sir, this is a test.
134
131
screen . getByText ( 'Loading..' )
135
132
} )
136
133
await waitFor ( ( ) => {
137
- // eslint-disable-next-line testing-library/prefer-explicit-assert -- Sir, this is a test.
138
134
screen . getByText ( / L o a d e d t h i s m e s s a g e : / )
139
135
} )
140
136
expect ( screen . getByTestId ( 'message' ) ) . toHaveTextContent ( / H e l l o W o r l d / )
You can’t perform that action at this time.
0 commit comments