From 13cb1749760dee08d5096e3ac5e30721136b288a Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Sat, 31 May 2025 12:39:16 +0530 Subject: [PATCH] docs: broken understanding act function guide link in troubleshooting guide --- 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 fafab722e..3ed8ae6b9 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 fafab722e..3ed8ae6b9 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.