Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 3dfd0ab

Browse files
Update DEPRECATION.md
1 parent 96244ad commit 3dfd0ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DEPRECATION.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Navigator 2.0 is the recommended long-term path.
3535
See the [go_router documentation](https://pub.dev/packages/go_router) to get started.
3636

3737
2. **Update your tests.** With `go_router`, navigation is driven by a `GoRouter` instance.
38-
In tests, you can provide a custom router with a test-specific configuration rather than
39-
mocking `Navigator` directly:
38+
In tests, you can provide a mock router with a test-specific configuration and inject it as a `Provider` so you can access it through `BuildContext`:
4039

4140
```dart
4241
final router = GoRouter(

0 commit comments

Comments
 (0)