From daaacafe311979900a086f49e90d30a4aea3284c Mon Sep 17 00:00:00 2001 From: JounQin Date: Thu, 14 Dec 2023 09:09:02 +0800 Subject: [PATCH] chore: only include specific test cases --- vitest.config.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vitest.config.ts b/vitest.config.ts index fd5f7fa8..834a4bdf 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,10 +3,7 @@ import { defineConfig } from 'vitest/config' export default defineConfig({ plugins: [ - // TODO: report the TypeScript issue - ( - autoImport as unknown as typeof import('unplugin-auto-import/vite')['default'] - )({ + autoImport({ imports: 'vitest', }), ], @@ -17,5 +14,6 @@ export default defineConfig({ reporter: ['lcov', 'json', 'text'], }, environment: 'jsdom', + include: ['test/*.{test,spec}.?(c|m)[jt]s?(x)'], }, })