-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscripts.patch.json
More file actions
67 lines (60 loc) · 4.25 KB
/
scripts.patch.json
File metadata and controls
67 lines (60 loc) · 4.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"// GROUP 1: SELECTIVE TESTS (ON-DEMAND DEVELOPMENT)": "Individual and targeted testing",
"test": "nx affected --target=test --parallel=3",
"test:unit": "nx affected --target=test --parallel=3",
"test:unit:all": "nx run-many --target=test --all --parallel=3",
"test:unit:portal": "nx test portal",
"test:unit:isbdm": "nx test isbdm",
"test:unit:theme": "nx test @ifla/theme",
"test:e2e:chromium": "npx playwright test --project=chromium",
"test:e2e:firefox": "npx playwright test --project=firefox",
"test:e2e:mobile": "npx playwright test --project='Mobile Chrome'",
"test:e2e:debug": "npx playwright test --debug",
"test:e2e:ui": "npx playwright test --ui",
"test:regression:visual": "npx playwright test e2e/visual-regression-enhanced.spec.ts",
"test:regression:performance": "npx playwright test e2e/performance.spec.ts",
"test:regression:affected": "nx affected --target=build --parallel=3",
"// GROUP 2: COMPREHENSIVE TESTS (TEST EVERYTHING)": "Full validation suites",
"test:comprehensive": "nx run-many --targets=typecheck,lint,test,build --all --parallel=3 && nx run standards-dev:e2e && nx run standards-dev:regression:full",
"test:comprehensive:unit": "nx run-many --target=test --all --parallel=3",
"test:comprehensive:e2e": "nx run standards-dev:e2e && nx run-many --target=e2e --all",
"test:comprehensive:builds": "nx run-many --target=build --all --parallel=3 && node scripts/test-site-builds.js --site all --env production",
"test:comprehensive:regression": "nx run standards-dev:regression:full",
"// GROUP 3: PRE-COMMIT TESTS (GIT HOOK)": "Fast feedback for commits",
"test:pre-commit": "nx affected --targets=typecheck,lint,test --parallel=3 && node scripts/test-site-builds-affected.js --env local --skip-build",
"test:pre-commit:manual": "pnpm test:pre-commit",
"// GROUP 4: PRE-PUSH TESTS (GIT HOOK - DEPLOYMENT FOCUS)": "Branch-aware deployment validation",
"test:pre-push": "./.husky/pre-push-optimized",
"test:pre-push:feature": "nx affected --targets=typecheck,lint,test --parallel=3 && node scripts/test-site-builds.js --site all --env localhost --skip-build",
"test:pre-push:protected": "nx affected --targets=test,build --parallel=3 && node scripts/test-site-builds.js --site all --env localhost --skip-build && nx run portal:e2e",
"test:pre-push:manual": "pnpm test:pre-push",
"// GROUP 5: CI TESTS (ENVIRONMENT/INFRASTRUCTURE FOCUS)": "Deployment environment validation",
"test:ci": "pnpm typecheck:affected && pnpm vitest run --config vitest.config.ci.ts && node scripts/test-site-builds.js --site all --env production --skip-build",
"test:ci:connectivity": "pnpm vitest run --config vitest.config.ci.ts packages/theme/src/tests/deployment/external-services.test.ts",
"test:ci:config": "node scripts/test-site-builds.js --site all --env production --skip-build",
"// CORE DEVELOPMENT COMMANDS (NX-OPTIMIZED)": "Primary workflow commands",
"lint": "nx affected --target=lint --parallel=3",
"lint:all": "nx run-many --target=lint --all --parallel=3",
"lint:affected": "nx affected --target=lint --parallel=3",
"typecheck": "nx affected --target=typecheck --parallel=3",
"typecheck:all": "nx run-many --target=typecheck --all --parallel=3",
"typecheck:affected": "nx affected --target=typecheck --parallel=3",
"// BUILD COMMANDS (NX-OPTIMIZED)": "Build orchestration",
"build:affected": "nx affected --target=build --parallel=3",
"build:all": "nx run-many --target=build --all --parallel=3",
"build:all:sequential": "nx run-many --target=build --all --parallel=1",
"// LEGACY/COMPATIBILITY SCRIPTS": "Maintained for backward compatibility",
"test:ui": "nx test --ui",
"test:watch": "nx test --watch",
"test:all": "nx run-many --target=test --all",
"test:affected": "nx affected --target=test",
"test:e2e": "nx run standards-dev:e2e",
"test:e2e:portal": "nx run portal:e2e",
"test:e2e:isbdm": "nx run isbdm:e2e",
"test:e2e:all": "nx run-many --target=e2e --all",
"test:e2e:affected": "nx affected --target=e2e",
"test:visual": "npx playwright test e2e/visual-regression-enhanced.spec.ts",
"test:visual:update": "npx playwright test e2e/visual-regression-enhanced.spec.ts --update-snapshots",
"test:performance": "npx playwright test e2e/performance.spec.ts",
"test:coverage": "pnpm test --coverage"
}