Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: rework how we assert command results #1084

Merged
merged 15 commits into from
Nov 22, 2024

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Nov 22, 2024

🧰 Changes

this PR is a slight rework to how we assert command results using @oclif/test (inspired by oclif/test#655). we use a mishmash of our own internal logger vs oclif's this.log and this sets us up for better success when we eventually unify all of this in v10.

this also touches up our vitest setup a bit — hiding Node.js ExperimentalWarning outputs, removing an unused matcher, only importing a matcher where we use it, etc.

our vitest output has been a bit of a mess lately so all of these changes culminate in a much cleaner output and i'm irrationally excited about it.

before

CleanShot 2024-11-22 at 10 55 54@2x

after

CleanShot 2024-11-22 at 10 55 21@2x

🧬 QA & Testing

no functional changes nor changes in test coverage — if tests still pass we should be in good shape.

@kanadgupta kanadgupta added the refactor Issues about tackling technical debt label Nov 22, 2024
@kanadgupta kanadgupta added this to the v9 milestone Nov 22, 2024
@kanadgupta kanadgupta requested a review from erunion November 22, 2024 16:51
@kanadgupta kanadgupta marked this pull request as ready for review November 22, 2024 16:51
__tests__/commands/changelogs/index.test.ts Outdated Show resolved Hide resolved
vitest.config.ts Show resolved Hide resolved
vitest.config.ts Show resolved Hide resolved
@kanadgupta kanadgupta merged commit 7808526 into next Nov 22, 2024
9 checks passed
@kanadgupta kanadgupta deleted the kanad-2024-11-22/test-refactor branch November 22, 2024 23:00
@kanadgupta
Copy link
Member Author

🎉 This PR is included in version 9.0.0-next.33 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kanadgupta
Copy link
Member Author

🎉 This PR is included in version 9.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues about tackling technical debt released on @next released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants