Skip to content

Commit d2940a5

Browse files
committed
Disable TL lint rules in tests
1 parent d0da54c commit d2940a5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
"testing-library/no-debugging-utils": "off",
8383
"testing-library/no-dom-import": "off",
8484
"testing-library/no-unnecessary-act": "off",
85+
"testing-library/prefer-explicit-assert": "off",
86+
"testing-library/prefer-find-by": "off",
8587
"testing-library/prefer-user-event": "off"
8688
}
8789
},

src/__tests__/end-to-end.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ describe.each([
6161

6262
test('waitFor', async () => {
6363
render(<ComponentWithMacrotaskLoader />)
64-
// eslint-disable-next-line testing-library/prefer-find-by -- Sir, this is a test.
6564
await waitFor(() => screen.getByText(/Loading../))
66-
// eslint-disable-next-line testing-library/prefer-find-by -- Sir, this is a test.
6765
await waitFor(() => screen.getByText(/Loaded this message:/))
6866
expect(screen.getByTestId('message')).toHaveTextContent(/Hello World/)
6967
})
@@ -130,11 +128,9 @@ describe.each([
130128
test('waitFor', async () => {
131129
render(<ComponentWithMicrotaskLoader />)
132130
await waitFor(() => {
133-
// eslint-disable-next-line testing-library/prefer-explicit-assert -- Sir, this is a test.
134131
screen.getByText('Loading..')
135132
})
136133
await waitFor(() => {
137-
// eslint-disable-next-line testing-library/prefer-explicit-assert -- Sir, this is a test.
138134
screen.getByText(/Loaded this message:/)
139135
})
140136
expect(screen.getByTestId('message')).toHaveTextContent(/Hello World/)

0 commit comments

Comments
 (0)