Skip to content

Commit

Permalink
fix: go router error when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaugomez committed Jan 29, 2024
1 parent b5858a0 commit 84d8d5c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:flutter_base/ui/features/auth/views/change_password/change_passw
import 'package:flutter_base/ui/features/auth/views/forgot_password/forgot_password_confirm_page.dart';
import 'package:flutter_base/ui/i18n/locale_keys.g.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:go_router/go_router.dart';
import 'package:mocktail/mocktail.dart';

import '../../../../helpers/expects.dart';
Expand All @@ -19,6 +20,9 @@ void main() {
setUpAll(() {
configureMockDependencies();
});
setUp(() {
getIt<GoRouter>().go('/home');
});

group('Forgot Password Confirm Page Test', () {
testWidgets(
Expand Down

0 comments on commit 84d8d5c

Please sign in to comment.