Skip to content

Commit 819c6cb

Browse files
authoredMar 7, 2023
fix: don't mark setupFiles as test files, if experimentaOptimizer is used (#2974)
1 parent 26265b3 commit 819c6cb

File tree

1 file changed

+1
-1
lines changed
  • packages/vitest/src/node/plugins

1 file changed

+1
-1
lines changed
 

‎packages/vitest/src/node/plugins/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest('t
154154
}
155155
else {
156156
const root = config.root || process.cwd()
157-
const entries = await ctx.globAllTestFiles(preOptions as ResolvedConfig, preOptions.dir || root)
157+
const [...entries] = await ctx.globAllTestFiles(preOptions as ResolvedConfig, preOptions.dir || root)
158158
if (preOptions?.setupFiles) {
159159
const setupFiles = toArray(preOptions.setupFiles).map((file: string) =>
160160
normalize(

0 commit comments

Comments
 (0)
Please sign in to comment.