Skip to content

Commit 3e89d9f

Browse files
committed
01/02: use projects, not workspace
1 parent 868b0c9 commit 3e89d9f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

β€Žexercises/01.setup/02.problem.multiple-workspaces/vitest.config.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { defineConfig, configDefaults } from 'vitest/config'
22

33
export default defineConfig({
44
test: {
5-
// 🐨 Add a property called `workspace`.
5+
// 🐨 Add a property called `projects`.
66
// Assign it an array as a value.
7-
// πŸ’° workspace: []
7+
// πŸ’° projects: []
88
//
9-
// 🐨 Add the first object to the `workspace` array.
9+
// 🐨 Add the first object to the `projects` array.
1010
// Inside that object, define a property called `test`.
1111
// This will be your configuration for unit tests.
1212
// Describe it accordingly, giving it a distinct `name`,
1313
// `environment`, and `include` and `exclude` patterns.
1414
// πŸ’° test: { name: 'unit', environment: 'node', globals: true }
1515
//
16-
// 🐨 Add the second object to the `workspace` array.
16+
// 🐨 Add the second object to the `projects` array.
1717
// Similarly to the first one, this will be your configuration for edge tests.
1818
// Give it a `name`, and use `edge-runtime` as its `environment`.
1919
// Don't forget to specify the `include` pattern so it applies only

β€Žexercises/01.setup/02.solution.multiple-workspaces/vitest.config.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig, configDefaults } from 'vitest/config'
22

33
export default defineConfig({
44
test: {
5-
workspace: [
5+
projects: [
66
{
77
test: {
88
name: 'unit',

0 commit comments

Comments
Β (0)