Skip to content

Commit 390731b

Browse files
committed
add sibling routes step
1 parent aaee752 commit 390731b

File tree

222 files changed

+1738
-4
lines changed

Some content is hidden

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

222 files changed

+1738
-4
lines changed

exercises/01.create-router/01.problem.create-router/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { test, expect } from '@playwright/test'
33
test('Hello World! should be rendered', async ({ page }) => {
44
await page.goto('/')
55

6-
const helloWorld = page.getByText('Hello World!')
6+
const helloWorld = page.getByText(/hello world/i)
77
await expect(helloWorld).toBeVisible({ timeout: 500 })
88
})

exercises/01.create-router/01.solution.create-router/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { test, expect } from '@playwright/test'
33
test('Hello World! should be rendered', async ({ page }) => {
44
await page.goto('/')
55

6-
const helloWorld = page.getByText('Hello World!')
6+
const helloWorld = page.getByText(/hello world/i)
77
await expect(helloWorld).toBeVisible({ timeout: 500 })
88
})

exercises/01.create-router/02.problem.router-elements/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { test, expect } from '@playwright/test'
33
test('Hello World! should be rendered', async ({ page }) => {
44
await page.goto('/')
55

6-
const helloWorld = page.getByText('Hello World!')
6+
const helloWorld = page.getByText(/hello world/i)
77
await expect(helloWorld).toBeVisible({ timeout: 500 })
88
})

exercises/01.create-router/02.solution.router-elements/tests/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { test, expect } from '@playwright/test'
33
test('Hello World! should be rendered', async ({ page }) => {
44
await page.goto('/')
55

6-
const helloWorld = page.getByText('Hello World!')
6+
const helloWorld = page.getByText(/hello world/i)
77
await expect(helloWorld).toBeVisible({ timeout: 500 })
88
})
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Sibling Routes
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>GratiText</title>
8+
</head>
9+
<body>
10+
<div id="🧭"></div>
11+
<script type="module" src="./src/main.tsx"></script>
12+
</body>
13+
</html>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "exercises_01.create-router_03.problem.sibling-routes",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"imports": {
7+
"#src/*": "./src/*"
8+
},
9+
"scripts": {
10+
"dev": "vite",
11+
"build": "tsc -b && vite build",
12+
"preview": "vite preview",
13+
"test": "playwright test --config=./tests/playwright.config.ts"
14+
},
15+
"dependencies": {
16+
"@tailwindcss/vite": "^4.0.9",
17+
"class-variance-authority": "^0.7.1",
18+
"clsx": "^2.1.1",
19+
"react": "^19.0.0",
20+
"react-dom": "^19.0.0",
21+
"react-router": "^7.2.0",
22+
"tailwindcss": "^4.0.9"
23+
},
24+
"devDependencies": {
25+
"@playwright/test": "^1.50.1",
26+
"@types/node": "^22.13.5",
27+
"@types/react": "^19.0.10",
28+
"@types/react-dom": "^19.0.4",
29+
"@vitejs/plugin-react": "^4.3.4",
30+
"typescript": "^5.7.3",
31+
"vite": "^6.2.0"
32+
}
33+
}
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)