Skip to content

Commit

Permalink
test: Debug ignore deps (#769)
Browse files Browse the repository at this point in the history
<!--
  Thanks for contributing!

Provide a description of your changes below and a general summary in the
title

Please look at the following checklist to ensure that your PR can be
accepted quickly:
-->

## Description

This PR is used to debug why it doesn't properly ignore the dependency
related lines in the tests on macOS.

## Type of Change

<!--- Put an `x` in all the boxes that apply: -->

- [ ] ✨ `feat` -- New feature (non-breaking change which adds
functionality)
- [ ] 🛠️ `fix` -- Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ `!` -- Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🧹 `refactor` -- Code refactor
- [ ] ✅ `ci` -- Build configuration change
- [ ] 📝 `docs` -- Documentation
- [X] 🗑️ `chore` -- Chore
  • Loading branch information
spydon authored Oct 7, 2024
1 parent d9ed25a commit af46c7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/melos/test/matchers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ Matcher ignoringDependencyMessages(String expected) {
!line.startsWith('Downloading packages...') &&
!line.startsWith('Got dependencies!') &&
// Removes lines like " pub_updater 0.4.0 (0.5.0 available)"
!(line.startsWith(' ') && line.contains(' available)')),
!(line.startsWith(' ') && line.contains(' available)')) &&
!line.contains(
'newer versions incompatible with dependency constraints',
) &&
!line.startsWith(
'Try `dart pub outdated` for more information.',
),
)
.join('\n');
return ignoringAnsii(expected).matches(normalizedActual, {});
Expand Down

0 comments on commit af46c7e

Please sign in to comment.