feat: Add typeahead search (#4275)#4733
Merged
sheremet-va merged 17 commits intovitest-dev:mainfrom Jan 12, 2024
Merged
Conversation
✅ Deploy Preview for fastidious-cascaron-4ded94 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Contributor
Author
To-Do List
|
6dde1a1 to
24506ea
Compare
sheremet-va
reviewed
Dec 18, 2023
sheremet-va
reviewed
Dec 18, 2023
sheremet-va
reviewed
Dec 18, 2023
hi-ogawa
reviewed
Dec 20, 2023
Closed
6 tasks
4626fee to
1969126
Compare
Contributor
Author
|
@sheremet-va |
3ebed7a to
f0e1cb6
Compare
2e02bbb to
7acd51b
Compare
bonyuta0204
commented
Dec 31, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request aims to improve the developer experience (DX) in Vitest's watch mode by introducing an interactive file selection feature. When filtering by filename pattern, Vitest will present a dynamically updated list of files that match the user's current input. This enhancement is inspired by the functionality available in jest-watch-typeahead, offering users a more intuitive and efficient way to select specific tests to run.
Related Issue
Closes #4275
Demo
File pattern
arrow-key-paging.mp4
Test name pattern
test_name_pattern.mp4
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.