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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"crowdin-needs-review": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/crowdin/reports/generateReviewReport.ts",
"update-tutorials": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/update-tutorials-list.ts",
"prepare": "husky",
"test": "USE_MOCK_DATA=true playwright test --project=unit --project=e2e",
"test:e2e": "playwright test --project=e2e",
"test": "pnpm test:unit && pnpm test:e2e",
"test:unit": "USE_MOCK_DATA=true playwright test --project=unit",
"test:e2e": "playwright test --project=e2e --project=e2e-webkit --project=e2e-mobile-chrome --project=e2e-mobile-safari",
"test:e2e:ui": "playwright test --project=e2e --ui",
"test:e2e:debug": "playwright test --project=e2e --debug",
"test:e2e:report": "playwright show-report tests/__report__",
"test:unit": "USE_MOCK_DATA=true playwright test --project=unit",
"trigger:dev": "dotenv -e .env -- npx trigger.dev@latest dev"
},
"dependencies": {
Expand Down
10 changes: 8 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ export default defineConfig<ChromaticConfig>({
expect: {
timeout: 10000,
},

projects: [
/* E2E tests - require browser */
// ─────────────────────────────────────────────────────────────────────────
// E2E tests - Visual regression + functional tests across browsers/devices
// ─────────────────────────────────────────────────────────────────────────
{
name: "e2e",
testDir: "./tests/e2e",
Expand All @@ -60,7 +63,10 @@ export default defineConfig<ChromaticConfig>({
testDir: "./tests/e2e",
use: { ...devices["iPhone 12"] },
},
/* Unit tests - no browser needed */

// ─────────────────────────────────────────────────────────────────────────
// Unit tests
// ─────────────────────────────────────────────────────────────────────────
{
name: "unit",
testDir: "./tests/unit",
Expand Down