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
--ui
attempts to load .vue
files unrelated to test
#485
Comments
Hi, is that issue still a problem? |
Yes. Running |
Ok, I'll try to see what is going wrong. |
Is it still happening? |
Yes, just tested it with v0.4.2. |
It's seemingly related to the file names. After renaming |
I just noticed the v0.5.0 release. After updating to that version, I do get the message that the UI was started, but the UI still is a 404. |
So, this happens because: By default, Vite will crawl all your .html files to detect dependencies that need to be pre-bundled (ignoring node_modules, build.outDir, tests and coverage). If build.rollupOptions.input is specified, Vite will crawl those entry points instead. We had it disabled, but removed some time ago - #641 🤔 So, if you do |
Describe the bug
Attempting to open the use the UI with
--ui
causes Vitest to load.vue
files unrelated to the tests (from the docs in particular).The following errors are printed:
demo/main.ts
is not referenced in the source code or any test.Reproduction
Repository with reproduction: https://github.com/DerYeger/d3-graph-controller
Can be reproduced by running the test with
yarn test:watch --ui
.System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: