Skip to content

chore: exclude vitest config inside snap tests for VSCode#1723

Merged
fengmk2 merged 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:patch-1
May 31, 2026
Merged

chore: exclude vitest config inside snap tests for VSCode#1723
fengmk2 merged 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:patch-1

Conversation

@liangmiQwQ
Copy link
Copy Markdown
Contributor

I found that my git usually reports that there is an untracked .vitest-plugin-loaded, it is generated by a Vitest plugin inside vite-plugins-async-test snap test and can be removed while running tests. However, Vitest VSCode extension can not run the test but automatically loads the config, which creates this file.

This PR adds snap tests directory to Vitest's configure ignore pattern, means Vitest will no longer treat it as a nested config or a workspace project, so this file should not annoy our developing after it.

Signed-off-by: Liang <github@liangmi.dev>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 31, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 22057bc
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a1b7f4823e88e00084c0033

@liangmiQwQ
Copy link
Copy Markdown
Contributor Author

The prefix **/node_modules/**,**/vendor/**,**/.*/**,**/*.d.ts, is Vitest extension's default value, so I keep them as they are.

@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented May 31, 2026

@liangmiQwQ 👍

@fengmk2 fengmk2 merged commit 7fc0b4a into voidzero-dev:main May 31, 2026
40 checks passed
@liangmiQwQ liangmiQwQ deleted the patch-1 branch May 31, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants