Skip to content

Commit

Permalink
fix: don't mark setupFiles as test files, if experimentaOptimizer is …
Browse files Browse the repository at this point in the history
…used (#2974)
  • Loading branch information
sheremet-va committed Mar 7, 2023
1 parent 26265b3 commit 819c6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/plugins/index.ts
Expand Up @@ -154,7 +154,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest('t
}
else {
const root = config.root || process.cwd()
const entries = await ctx.globAllTestFiles(preOptions as ResolvedConfig, preOptions.dir || root)
const [...entries] = await ctx.globAllTestFiles(preOptions as ResolvedConfig, preOptions.dir || root)
if (preOptions?.setupFiles) {
const setupFiles = toArray(preOptions.setupFiles).map((file: string) =>
normalize(
Expand Down

0 comments on commit 819c6cb

Please sign in to comment.