Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class Vitest {
if (this.config.projects) {
if (typeof this.config.workspace !== 'undefined') {
this.logger.warn(
'Both `config.projects` and `config.workspace` are defined. Ignoring the `workspace` option.',
'Both `test.projects` and `test.workspace` are defined. Ignoring the `test.workspace` option.',
)
}

Expand All @@ -446,7 +446,7 @@ export class Vitest {

if (Array.isArray(this.config.workspace)) {
this.logger.deprecate(
'The `workspace` option is deprecated and will be removed in the next major. To hide this warning, rename `workspace` option to `projects`.',
'The `test.workspace` option is deprecated and will be removed in the next major. To hide this warning, rename `test.workspace` option to `test.projects`.',
)
return resolveProjects(
this,
Expand Down Expand Up @@ -477,7 +477,7 @@ export class Vitest {
: 'the root config file'

this.logger.deprecate(
`The workspace file is deprecated and will be removed in the next major. Please, use the \`projects\` field in ${configFile} instead.`,
`The workspace file is deprecated and will be removed in the next major. Please, use the \`test.projects\` field in ${configFile} instead.`,
)

const workspaceModule = await this.import<{
Expand Down
Loading