dimaMachina / graphql-eslint

ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.
https://the-guild.dev/graphql/eslint
MIT License
778 stars 102 forks source link

test in watch mode does not receive any input #2301

Open comatory opened 1 month ago

comatory commented 1 month ago

Issue workflow progress

Progress of the issue based on the Contributor Workflow


Describe the bug

Running pnpm test launches test suites in watch mode which is fine. The problems is, I'd like to filter down to specific unit test in the watch mode but it seems like any input I provide, it is not registered by the test runner (which I assume is vitest).

To Reproduce Steps to reproduce the behavior:

  1. Run pnpm test
  2. Wait for all the compilation to finish until "Waiting for file changes..." appears
  3. Press h or q key

Expected behavior

I would expect menu to appear where I can enter filter mode, or even ability to quit. Only CTRL+C works

Environment:

Additional context

Check video for the behaviour, you can see the entered characters appear on screen. Maybe this is vitest issue but I've been unable to find anything similar. I use tmux so not sure if that can be an issue.

https://github.com/dimaMachina/graphql-eslint/assets/5990424/b2dd90ab-bfbd-4cb1-b226-82f518529f4b