Skip to content

Commit 9b9e7c8

Browse files
committed
docs: testing link
1 parent d19bc6d commit 9b9e7c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ const factory: RouteFactory<Dependencies> = {
134134
The key here is, that `getDependencies` is solely a helper. For testing, you might forgo it entirely,
135135
and `create` the router yourself with a mocked up database.
136136

137+
### Testing
138+
Before we go too deep, check out the [testing](https://www.npmjs.com/package/@lcdev/router-testing) package.
139+
It provides a very simple way to use these route factories as test fixtures.
140+
137141
### Prefix
138142
Prefixes get applied to all actions in a router. That means `prefix: '/auth'` puts all your actions within
139143
that path prefix. You can forgo this and specify absolute paths in your actions if you want.

0 commit comments

Comments
 (0)