Replies: 1 comment 2 replies
-
Vitest uses Vite's module graph to watch change and trigger test rerun, so if you're reading text files with If you want to rerun all tests, then you can add text files to Another approach (I haven't checked though) would be to use Vite's import mechanism to load text file so that they also join in module graph. For example, if you use |
Beta Was this translation helpful? Give feedback.
-
Recently, I was doing lots of tests on text files, there is an inconvenience where you have to touch spec file to rerun the test in watch mode if you change test data file.
First thing that I tried was to add txt files into include field within Vitest config, and then tried to log batch of files within Reporter, this didn't work and these txt files are for Vitest invisible and only Typescript files relevant to tests are logged.
Is there any way that would allow me to get notified when any file with any pattern changes?
Beta Was this translation helpful? Give feedback.
All reactions