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

Support -u alias in bun test #10073

Open
silverwind opened this issue Apr 8, 2024 · 1 comment · May be fixed by #10097
Open

Support -u alias in bun test #10073

silverwind opened this issue Apr 8, 2024 · 1 comment · May be fixed by #10097
Labels
enhancement New feature or request jest Something related to the `bun test` runner quick fix Something that can be fixed with low effort, but high impact

Comments

@silverwind
Copy link

silverwind commented Apr 8, 2024

What is the problem this feature would solve?

The CLI flag to update snapshots is inconsistent with jest and vitest.

What is the feature you are proposing to solve the problem?

Add -u as an alias for --update-snapshots in bun test.

  • jest supports -u and --updateSnapshot
  • vitest supports -u and --update
  • bun only supports --update-snapshots
@silverwind silverwind added the enhancement New feature or request label Apr 8, 2024
@Electroid Electroid added jest Something related to the `bun test` runner quick fix Something that can be fixed with low effort, but high impact labels Apr 8, 2024
@Electroid
Copy link
Contributor

This makes sense, we can support this and it should be a trivial change.

silverwind added a commit to silverwind/bun that referenced this issue Apr 8, 2024
@silverwind silverwind linked a pull request Apr 8, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jest Something related to the `bun test` runner quick fix Something that can be fixed with low effort, but high impact
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants