Skip to content

Commit

Permalink
Expand Vitest file extension checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joealden authored and webpro committed Sep 20, 2024
1 parent dc9e3ed commit c949598
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 c949598

Please sign in to comment.