Skip to content

Commit 30cae63

Browse files
authored
Router data (#43)
* support router data
1 parent 3115218 commit 30cae63

7 files changed

Lines changed: 104 additions & 376 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const results = render(() => <YourComponent />, options);
7878

7979
Solid.js reactive changes are pretty instantaneous, so there is rarely need to use `waitFor(…)` or `await findByRole(…)`, except for transitions, suspense and router navigation.
8080

81-
⚠️ In extension of the original API, this testing library supports a convenient `location` option that will set up a router with memory integration pointing at a certain path. Since setting the path is not instantaneous, you need to use asynchronous queries after employing it:
81+
⚠️ In extension of the original API, this testing library supports convenient `location` and `routeDataFunc` options that will set up a router with memory integration pointing at a certain path if `location` is given and primed with the `routeDataFunc` as data. Since this setup is not instantaneous, you need to first use asynchronous queries (`findBy`) after employing it:
8282

8383
```tsx
8484
const App = () => (

0 commit comments

Comments
 (0)