From b0f7c466b5f8ba92a2444bee2d0478655e11db16 Mon Sep 17 00:00:00 2001 From: Joe Alden Date: Fri, 20 Sep 2024 07:20:31 +0100 Subject: [PATCH] Fix: Expand Vitest File Extension Checks (#785) --- packages/knip/src/plugins/vitest/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/knip/src/plugins/vitest/index.ts b/packages/knip/src/plugins/vitest/index.ts index 261046836..d93fdfb80 100644 --- a/packages/knip/src/plugins/vitest/index.ts +++ b/packages/knip/src/plugins/vitest/index.ts @@ -14,7 +14,7 @@ const enablers = ['vitest']; const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependencies, enablers); -const config = ['vitest*.config.{js,mjs,ts,cjs,mts,cts}', 'vitest.{workspace,projects}.{ts,js,json}']; +const config = ['vitest*.config.{js,mjs,ts,cjs,mts,cts}', 'vitest.{workspace,projects}.{js,mjs,ts,cjs,mts,cts,json}']; const entry = ['**/*.{bench,test,test-d,spec}.?(c|m)[jt]s?(x)'];