Skip to content

Commit 069de18

Browse files
fix: update ESLint plugin documentation link in warning message (#1782)
1 parent 7a2b412 commit 069de18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/queries/__tests__/find-by.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ test('findByTestId detects screen being detached', async () => {
1818
Screen is no longer attached. Check your test for "findBy*" or "waitFor" calls that have not been awaited.
1919
2020
We recommend enabling "eslint-plugin-testing-library" to catch these issues at build time:
21-
https://callstack.github.io/react-native-testing-library/docs/getting-started#eslint-plugin"
21+
https://callstack.github.io/react-native-testing-library/docs/start/quick-start#eslint-plugin"
2222
`);
2323
});

src/queries/make-queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function formatErrorMessage(message: string, printElementTree: boolean) {
8888
}
8989

9090
if (screen.isDetached) {
91-
return `${message}\n\nScreen is no longer attached. Check your test for "findBy*" or "waitFor" calls that have not been awaited.\n\nWe recommend enabling "eslint-plugin-testing-library" to catch these issues at build time:\nhttps://callstack.github.io/react-native-testing-library/docs/getting-started#eslint-plugin`;
91+
return `${message}\n\nScreen is no longer attached. Check your test for "findBy*" or "waitFor" calls that have not been awaited.\n\nWe recommend enabling "eslint-plugin-testing-library" to catch these issues at build time:\nhttps://callstack.github.io/react-native-testing-library/docs/start/quick-start#eslint-plugin`;
9292
}
9393

9494
const json = screen.toJSON();

0 commit comments

Comments
 (0)