diff --git a/src/queries/__tests__/find-by.test.tsx b/src/queries/__tests__/find-by.test.tsx index 67b1c2e4..4b9c9d60 100644 --- a/src/queries/__tests__/find-by.test.tsx +++ b/src/queries/__tests__/find-by.test.tsx @@ -18,6 +18,6 @@ test('findByTestId detects screen being detached', async () => { Screen is no longer attached. Check your test for "findBy*" or "waitFor" calls that have not been awaited. We recommend enabling "eslint-plugin-testing-library" to catch these issues at build time: - https://callstack.github.io/react-native-testing-library/docs/getting-started#eslint-plugin" + https://callstack.github.io/react-native-testing-library/docs/start/quick-start#eslint-plugin" `); }); diff --git a/src/queries/make-queries.ts b/src/queries/make-queries.ts index 3090e2d3..6f25a8de 100644 --- a/src/queries/make-queries.ts +++ b/src/queries/make-queries.ts @@ -88,7 +88,7 @@ function formatErrorMessage(message: string, printElementTree: boolean) { } if (screen.isDetached) { - 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`; + 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`; } const json = screen.toJSON();