Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ speed on some of the tools and concepts we'll be covering:
## System Requirements

- [git][git] v2.18 or greater
- **[NodeJS][node] v23.11.0 or greater**
- **[NodeJS][node] v24 or greater**
- [npm][npm] v8 or greater

All of these must be available in your `PATH`. To verify things are set up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ test('sorts a list of players by their score', () => {
'score',
),
).toEqual([
{ name: 'Sarah', score: 21 },
{ name: 'John', score: 10 },
{ name: 'Allen', score: 5 },
{ name: 'John', score: 10 },
{ name: 'Sarah', score: 21 },
])
})
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@edge-runtime/types": "^4.0.0",
"vitest": "^3.1.1"
}
}
10 changes: 5 additions & 5 deletions exercises/01.setup/02.problem.multiple-workspaces/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": [],
"references": [
{ "path": "tsconfig.edge.json" },
{ "path": "tsconfig.app.json" },
{ "path": "tsconfig.node.json" },
{ "path": "tsconfig.test.edge.json" },
{ "path": "tsconfig.test.json" }
{ "path": "./tsconfig.edge.json" },
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" },
{ "path": "./tsconfig.test.edge.json" },
{ "path": "./tsconfig.test.json" }
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig.app.json",
"include": ["global.d.ts", "src/**/*", "src/**/*.test.ts"],
"exclude": [],
"include": ["global.d.ts", "src/**/*.test.ts"],
"exclude": ["src/**/*.edge.test.ts"],
"compilerOptions": {
"types": ["vitest/globals"]
"types": ["@types/node", "vitest/globals"]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.base.json",
"include": ["src/**/*"],
"include": ["src"],
"exclude": ["src/api", "src/**/*.test.ts"],
"compilerOptions": {
"lib": ["esnext"]
Expand Down
10 changes: 5 additions & 5 deletions exercises/01.setup/02.solution.multiple-workspaces/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": [],
"references": [
{ "path": "tsconfig.edge.json" },
{ "path": "tsconfig.app.json" },
{ "path": "tsconfig.node.json" },
{ "path": "tsconfig.test.edge.json" },
{ "path": "tsconfig.test.json" }
{ "path": "./tsconfig.edge.json" },
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" },
{ "path": "./tsconfig.test.edge.json" },
{ "path": "./tsconfig.test.json" }
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig.app.json",
"include": ["global.d.ts", "src/**/*", "src/**/*.test.ts"],
"exclude": [],
"include": ["global.d.ts", "src/**/*.test.ts"],
"exclude": ["src/**/*.edge.test.ts"],
"compilerOptions": {
"types": ["vitest/globals"]
"types": ["@types/node", "vitest/globals"]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^22.14.1",
"@types/node": "^24.3.0",
"vitest": "^3.2.0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^22.14.1",
"@types/node": "^24.3.0",
"vitest": "^3.2.0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^22.14.1",
"@types/node": "^24.3.0",
"vitest": "^3.1.1"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^22.14.1",
"@types/node": "^24.3.0",
"vitest": "^3.1.1"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { expensiveCompute } from './utils'
test('retrieves all the rows', function myTest() {
const rows = expensiveCompute()
expect(rows).toBeInstanceOf(Array)
expect(rows).toHaveLength(100_000_000)
expect(rows).toHaveLength(10_000_000)
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function expensiveCompute() {
const rows = []

for (let i = 0; i < 100_000_000; i++) {
for (let i = 0; i < 10_000_000; i++) {
rows.push(i)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { expensiveCompute } from './utils'
test('retrieves all the rows', function myTest() {
const rows = expensiveCompute()
expect(rows).toBeInstanceOf(Array)
expect(rows).toHaveLength(100_000_000)
expect(rows).toHaveLength(10_000_000)
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function expensiveCompute() {
const rows = []

for (let i = 0; i < 100_000_000; i++) {
for (let i = 0; i < 10_000_000; i++) {
rows.push(i)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^24.3.0",
"vitest": "^3.1.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"test": "vitest"
},
"devDependencies": {
"@types/node": "^24.3.0",
"vitest": "^3.1.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.base.json",
"include": ["src/**/*", "src/**/*.test.ts*"],
"include": ["tests"],
"exclude": [],
"compilerOptions": {
"types": ["vitest/globals"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.base.json",
"include": ["src/**/*", "src/**/*.test.ts*"],
"include": ["tests"],
"exclude": [],
"compilerOptions": {
"types": ["vitest/globals"]
Expand Down
Loading
Loading