Skip to content

Commit b728069

Browse files
committed
04/01: add exercise
1 parent 6a74d30 commit b728069

File tree

476 files changed

+31370
-59
lines changed

Some content is hidden

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

476 files changed

+31370
-59
lines changed

exercises/01.basics/02.problem.running-the-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/01.basics/02.solution.running-the-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/01.problem.custom-fixtures/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/01.solution.custom-fixtures/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/03.problem.authentication/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/03.solution.authentication/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/04.problem.api-mocking/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/04.solution.api-mocking/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/05.problem.test-data/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "vitest",
2222
"coverage": "vitest run --coverage",
2323
"test:e2e": "npm run test:e2e:dev --silent",
24-
"test:e2e:dev": "playwright test --ui",
24+
"test:e2e:dev": "npx playwright test --ui",
2525
"pretest:e2e:run": "npm run build",
26-
"test:e2e:run": "cross-env CI=true playwright test",
26+
"test:e2e:run": "npx cross-env CI=true npx playwright test",
2727
"test:e2e:install": "npx playwright install --with-deps chromium",
2828
"typecheck": "react-router typegen && tsc",
2929
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"

exercises/02.test-setup/05.problem.test-data/tests/e2e/notes-list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { createNotes } from '#tests/e2e/utils'
12
import { test, expect } from '#tests/test-extend.ts'
2-
import { createNotes } from './utils'
33

44
test('displays all user notes', async ({ navigate, authenticate, page }) => {
55
const { user } = await authenticate({ as: 'user' })

0 commit comments

Comments
 (0)