Skip to content

Commit

Permalink
Fix: Expand Vitest File Extension Checks (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
joealden authored Sep 20, 2024
1 parent dc9e3ed commit b0f7c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/plugins/vitest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)'];

Expand Down

0 comments on commit b0f7c46

Please sign in to comment.