Skip to content

Commit 6fe2dde

Browse files
committed
Merge branch 'main' into 04/03-isolation
2 parents 2795531 + 4db00a0 commit 6fe2dde

File tree

115 files changed

+140
-1435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+140
-1435
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- name: ▶️ Run setup script
3030
run: npm run setup
3131

32-
- name: ʦ TypeScript
33-
run: npm run typecheck
32+
# - name: ʦ TypeScript
33+
# run: npm run typecheck
3434

3535
- name: ⬣ ESLint
3636
run: npm run lint

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div align="center">
1111
<a
1212
alt="Epic Web logo with the words Deployed Version"
13-
href="https://advanced-vitest-patterns.epicweb.dev/
13+
href="https://advanced-vitest-patterns.epicweb.dev/"
1414
>
1515
<img
1616
width="300px"
@@ -50,7 +50,7 @@ speed on some of the tools and concepts we'll be covering:
5050
## System Requirements
5151

5252
- [git][git] v2.18 or greater
53-
- **[NodeJS][node] v23 or greater**
53+
- **[NodeJS][node] v23.11.0 or greater**
5454
- [npm][npm] v8 or greater
5555

5656
All of these must be available in your `PATH`. To verify things are set up

exercises/01.setup/01.problem.vscode-extension/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"test": "vitest"
66
},
77
"devDependencies": {
8-
"vite": "^6.2.6",
98
"vitest": "^3.1.1"
109
}
1110
}

exercises/01.setup/01.problem.vscode-extension/vitest.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { defineConfig } from 'vitest/config'
22

33
export default defineConfig({
4-
server: {
5-
port: process.env.PORT ? Number(process.env.PORT) : undefined,
6-
},
74
test: {
85
globals: true,
96
},

exercises/01.setup/01.solution.vscode-extension/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"test": "vitest"
66
},
77
"devDependencies": {
8-
"vite": "^6.2.6",
98
"vitest": "^3.1.1"
109
}
1110
}

exercises/01.setup/01.solution.vscode-extension/vitest.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { defineConfig } from 'vitest/config'
22

33
export default defineConfig({
4-
server: {
5-
port: process.env.PORT ? Number(process.env.PORT) : undefined,
6-
},
74
test: {
85
globals: true,
96
},

exercises/01.setup/02.problem.multiple-workspaces/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"include": ["src/**/*"],
4-
"exclude": ["src/**/*.test.ts"],
4+
"exclude": ["src/api", "src/**/*.test.ts"],
55
"compilerOptions": {
66
"lib": ["esnext"]
77
}

exercises/01.setup/02.problem.multiple-workspaces/tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "./tsconfig.app.json",
3-
"include": ["src/**/*", "src/**/*.test.ts"],
3+
"include": ["global.d.ts", "src/**/*", "src/**/*.test.ts"],
44
"exclude": [],
55
"compilerOptions": {
66
"types": ["vitest/globals"]

exercises/01.setup/02.solution.multiple-workspaces/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ npm test
166166
Duration 221ms (transform 31ms, setup 0ms, collect 30ms, tests 5ms, environment 16ms, prepare 73ms)
167167
```
168168

169-
<callout-success>Motice how Vitest prints the workspace name (`unit` and `edge`) next to the respective test files. This lets you know which workspace is handling that file.</callout-success>
169+
<callout-success>Notice how Vitest prints the workspace name (`unit` and `edge`) next to the respective test files. This lets you know which workspace is handling that file.</callout-success>
170170

171171
But I can also run individual workspaces by providing the `--project` option to the Vitest CLI and giving it the name of the workspace I want to run:
172172

exercises/01.setup/02.solution.multiple-workspaces/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"@edge-runtime/types": "^4.0.0",
1111
"@edge-runtime/vm": "^5.0.0",
1212
"edge-runtime": "^4.0.1",
13-
"vite": "^6.2.6",
1413
"vitest": "^3.1.1"
1514
}
1615
}

0 commit comments

Comments
 (0)