Skip to content

Commit

Permalink
refactor: refactor error handling and improve matcher function
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicatarra committed Sep 16, 2024
1 parent 73d612b commit 7832bbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/melos/test/matchers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ Matcher ignoringDependencyMessages(String expected) {
(line) =>
!line.startsWith('Resolving dependencies...') &&
!line.startsWith('Downloading packages...') &&
!line.startsWith('Got dependencies!'),
!line.startsWith('Got dependencies!') &&
!line.contains('pub_updater') &&
!line.contains(
'newer versions incompatible with dependency constraints',
) &&
!line.contains('Try `dart pub outdated` for more information.'),
)
.join('\n');
return ignoringAnsii(expected).matches(normalizedActual, {});
Expand Down

0 comments on commit 7832bbd

Please sign in to comment.