Skip to content

Commit 5b43701

Browse files
committed
02/05: clear out what happens with ts configs
1 parent d466c02 commit 5b43701

File tree

2 files changed

+5
-5
lines changed
  • exercises/02.vitest-browser-mode

2 files changed

+5
-5
lines changed

exercises/02.vitest-browser-mode/05.problem.multiple-workspaces/README.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ You can fix this by introducing _different workspaces_ for different types of te
1212

1313
```json filename=tsconfig.test.browser.json remove=2 add=3
1414
{
15-
"include": ["**/*.test.ts"],
16-
"include": ["**/*.browser.test.ts*"]
15+
"include": ["vitest.browser.setup.ts", "**/*.test.ts"],
16+
"include": ["vitest.browser.setup.ts", "**/*.browser.test.ts*"]
1717
}
1818
```
1919

exercises/02.vitest-browser-mode/05.solution.multiple-workspaces/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Let's go over them in more detail.
5959

6060
The first workspace include the configuration for running unit tests:
6161

62-
```ts nonumber
62+
```ts filename=vite.config.ts nonumber
6363
{
6464
test: {
6565
name: 'unit',
@@ -80,7 +80,7 @@ The first workspace include the configuration for running unit tests:
8080
8181
Similarly, here's the workspace for the browser (component) tests:
8282

83-
```ts nonumber
83+
```ts filename=vite.config.ts nonumber
8484
{
8585
test: {
8686
name: 'browser',
@@ -142,7 +142,7 @@ Next, I rename the existing `tsconfig.test.json` to `tsconfig.test.browser.json`
142142
```json highlight=3,7
143143
{
144144
"extends": "./tsconfig.base.json",
145-
"include": ["**/*.browser.test.ts*"],
145+
"include": ["vitest.browser.setup.ts", "**/*.browser.test.ts*"],
146146
"compilerOptions": {
147147
"target": "esnext",
148148
"module": "preserve",

0 commit comments

Comments
 (0)