Skip to content

Commit

Permalink
fix(workspace): forward inspect related cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jan 28, 2025
1 parent 9acc13f commit dc4c02e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vitest/src/node/workspace/resolveWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export async function resolveWorkspace(
'bail',
'isolate',
'printConsoleTrace',
'inspect',
'inspectBrk',
'fileParallelism',
] as const

const cliOverrides = overridesOptions.reduce((acc, name) => {
Expand Down Expand Up @@ -73,7 +76,7 @@ export async function resolveWorkspace(
projectPromises.push(concurrent(() => initializeProject(
index,
vitest,
{ ...options, root, configFile },
{ ...options, root, configFile, test: { ...options.test, ...cliOverrides } },
)))
})

Expand Down

0 comments on commit dc4c02e

Please sign in to comment.