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.