From b948dced9700a617c3daea109e6d9e9ba2ac0fd8 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Mon, 14 Jul 2025 13:12:45 +0530 Subject: [PATCH] docs: broken understanding act function guide link in troubleshooting guide (#1773) --- website/docs/12.x/docs/guides/troubleshooting.mdx | 2 +- website/docs/13.x/docs/guides/troubleshooting.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/12.x/docs/guides/troubleshooting.mdx b/website/docs/12.x/docs/guides/troubleshooting.mdx index fafab722..3ed8ae6b 100644 --- a/website/docs/12.x/docs/guides/troubleshooting.mdx +++ b/website/docs/12.x/docs/guides/troubleshooting.mdx @@ -73,7 +73,7 @@ When writing tests you may encounter warnings connected with `act()` function. T - sync `act()` warning - `Warning: An update to Component inside a test was not wrapped in act(...)` - async `act()` warning - `Warning: You called act(async () => ...) without await` -You can read more about `act()` function in our [understanding `act` function guide](https://callstack.github.io/react-native-testing-library/docs/understanding-act). +You can read more about `act()` function in our [understanding `act` function guide](docs/advanced/understanding-act). Normally, you should not encounter sync `act()` warnings, but if that happens this probably indicate an issue with your test and should be investigated. diff --git a/website/docs/13.x/docs/guides/troubleshooting.mdx b/website/docs/13.x/docs/guides/troubleshooting.mdx index fafab722..3ed8ae6b 100644 --- a/website/docs/13.x/docs/guides/troubleshooting.mdx +++ b/website/docs/13.x/docs/guides/troubleshooting.mdx @@ -73,7 +73,7 @@ When writing tests you may encounter warnings connected with `act()` function. T - sync `act()` warning - `Warning: An update to Component inside a test was not wrapped in act(...)` - async `act()` warning - `Warning: You called act(async () => ...) without await` -You can read more about `act()` function in our [understanding `act` function guide](https://callstack.github.io/react-native-testing-library/docs/understanding-act). +You can read more about `act()` function in our [understanding `act` function guide](docs/advanced/understanding-act). Normally, you should not encounter sync `act()` warnings, but if that happens this probably indicate an issue with your test and should be investigated.