Skip to content

docs: broken understanding act function guide link in troubleshooting guide #1773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/docs/12.x/docs/guides/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/13.x/docs/guides/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down