From 314cbf471f8e9cff2a3fca6bbd969807401b5cda Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 12 Apr 2023 16:14:10 +0200 Subject: [PATCH] feat: better vscode vitest integration --- .vscode.example/extensions.json | 3 ++- vite.config.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode.example/extensions.json b/.vscode.example/extensions.json index cb95e874..aa9ea3e1 100644 --- a/.vscode.example/extensions.json +++ b/.vscode.example/extensions.json @@ -8,6 +8,7 @@ "lokalise.i18n-ally", "mgmcdermott.vscode-language-babel", "mikestead.dotenv", - "Syler.sass-indented" + "Syler.sass-indented", + "zixuanchen.vitest-explorer" ] } \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 731fc469..dcc60133 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -60,6 +60,7 @@ export default defineConfig(({mode}) => { // https://vitest.dev/config/ test: { environment: 'happy-dom', + 'vitest.commandLine': 'pnpm test:unit', }, css: { preprocessorOptions: {