vercel/turborepo

pressing enter does not work in tui for vitest tests

macrozone opened this issue · 2 comments

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

not yet

What package manager are you using / does the bug impact?

Yarn v2/v3/v4 (node_modules linker only)

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

2.2.1

Describe the Bug

pressing Enter does not work when there are vitest tests which wait for a command (like u to update snapshot)

Expected Behavior

pressing Enter should work. Or there should be alternatives to interact with the terminal

To Reproduce

i am using iterm and noticed this bug when there were some vitest tests running. Those wait for keypress like "u" to update snapshots or "h" for help.

neither pressing any of those buttons nor enter work in this case

Additional context

No response

Update: with the stream ui it does not work either

the problem is that i did not use the watch mode and persistent task

its recommended to locally run vitest with watch mode like here https://turbo.build/repo/docs/guides/tools/vitest#running-tests-in-watch-mode