Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/vitest/src/node/projects/resolveProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export async function resolveProjects(
'inspectBrk',
'fileParallelism',
'tagsFilter',
'experimental',
] as const

const cliOverrides = overridesOptions.reduce((acc, name) => {
Expand Down
11 changes: 11 additions & 0 deletions test/config/test/cli-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ it('correctly inherit from the cli', async () => {
testNamePattern: 'math',
passWithNoTests: true,
bail: 100,
experimental: {
importDurations: {
print: true,
},
},
},
})
const project = ctx!.projects[0]
Expand All @@ -48,6 +53,12 @@ it('correctly inherit from the cli', async () => {
retry: 6,
passWithNoTests: true,
bail: 100,
experimental: expect.objectContaining({
importDurations: {
print: true,
limit: 10,
},
}),
})
expect(config.testNamePattern?.test('math')).toBe(true)
})
Loading