From a0b8d214a4c0d1adbbab0d63f1771b9863ec0631 Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Fri, 26 Jan 2024 11:44:28 +0100 Subject: [PATCH] Fix CI (#3306) --- .../test/generator_provider_declaration_test.dart | 2 +- packages/riverpod_lint_flutter_test/pubspec.yaml | 1 + packages/riverpod_lint_flutter_test/test/golden.dart | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/riverpod_analyzer_utils_tests/test/generator_provider_declaration_test.dart b/packages/riverpod_analyzer_utils_tests/test/generator_provider_declaration_test.dart index 50f575199..bf66ba6dd 100644 --- a/packages/riverpod_analyzer_utils_tests/test/generator_provider_declaration_test.dart +++ b/packages/riverpod_analyzer_utils_tests/test/generator_provider_declaration_test.dart @@ -157,7 +157,7 @@ int sixth(SixthRef ref) => 0; expect( errors[5].message, - 'Failed to parse dependency Type (int*)', + 'Failed to parse dependency Type (int)', ); expect(errors[5].targetElement?.toString(), 'int sixth(InvalidType ref)'); }); diff --git a/packages/riverpod_lint_flutter_test/pubspec.yaml b/packages/riverpod_lint_flutter_test/pubspec.yaml index ee7b99ace..512c1651e 100644 --- a/packages/riverpod_lint_flutter_test/pubspec.yaml +++ b/packages/riverpod_lint_flutter_test/pubspec.yaml @@ -16,6 +16,7 @@ dependencies: dev_dependencies: build_runner: ^2.4.6 custom_lint: ^0.5.2 + custom_lint_core: ^0.5.10 freezed: ^2.3.2 json_serializable: ^6.6.1 riverpod_lint: diff --git a/packages/riverpod_lint_flutter_test/test/golden.dart b/packages/riverpod_lint_flutter_test/test/golden.dart index 83c9263ca..4b088566b 100644 --- a/packages/riverpod_lint_flutter_test/test/golden.dart +++ b/packages/riverpod_lint_flutter_test/test/golden.dart @@ -31,7 +31,10 @@ void testGolden( try { expect( changes, - matcherNormalizedPrioritizedSourceChangeSnapshot(fileName), + matcherNormalizedPrioritizedSourceChangeSnapshot( + fileName, + encoder: const JsonEncoder.withIndent(' '), + ), ); } on TestFailure { // ignore: deprecated_member_use_from_same_package