Skip to content

Commit c0eae7d

Browse files
authored
chore: update deprecated workspace file log (#8118)
1 parent 14dc072 commit c0eae7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vitest/src/node/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export class Vitest {
431431
if (this.config.projects) {
432432
if (typeof this.config.workspace !== 'undefined') {
433433
this.logger.warn(
434-
'Both `config.projects` and `config.workspace` are defined. Ignoring the `workspace` option.',
434+
'Both `test.projects` and `test.workspace` are defined. Ignoring the `test.workspace` option.',
435435
)
436436
}
437437

@@ -446,7 +446,7 @@ export class Vitest {
446446

447447
if (Array.isArray(this.config.workspace)) {
448448
this.logger.deprecate(
449-
'The `workspace` option is deprecated and will be removed in the next major. To hide this warning, rename `workspace` option to `projects`.',
449+
'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`.',
450450
)
451451
return resolveProjects(
452452
this,
@@ -477,7 +477,7 @@ export class Vitest {
477477
: 'the root config file'
478478

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

483483
const workspaceModule = await this.import<{

0 commit comments

Comments
 (0)