|
3 | 3 | "version": "0.1.0", |
4 | 4 | "private": true, |
5 | 5 | "type": "module", |
6 | | - "config": { |
7 | | - "host": "127.0.0.1", |
8 | | - "port": 3000 |
9 | | - }, |
10 | 6 | "scripts": { |
11 | | - "dev": "cross-env NODE_ENV=development HOST=$npm_package_config_host TS_NODE_TRANSPILE_ONLY=true node --env-file=.env.local --loader ts-node/esm server.ts | pnpm exec pino-pretty", |
| 7 | + "dev": "cross-env NODE_ENV=development HOST=127.0.0.1 TS_NODE_TRANSPILE_ONLY=true node --env-file=.env.local --loader ts-node/esm server.ts | pnpm exec pino-pretty", |
12 | 8 | "seed": "ts-node --esm scripts/seed-dev-data.ts", |
13 | 9 | "build": "npm run build:server && next build", |
14 | 10 | "build:server": "pnpm exec tsc -p tsconfig.build.json && cp dist/server.js dist/server.mjs", |
|
26 | 22 | "test:unit": "jest", |
27 | 23 | "test:unit:watch": "jest --watch", |
28 | 24 | "test:unit:coverage": "jest --coverage", |
29 | | - "test:json": "pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://$npm_package_config_host:$npm_package_config_port/api/debug/ping --timeout 20000 && npx playwright test --reporter=json > playwright-report.json; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
30 | | - "test:visual": "pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://$npm_package_config_host:$npm_package_config_port/api/debug/ping --timeout 20000 && playwright test; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
| 25 | + "test:json": "pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://127.0.0.1:3000/api/debug/ping --timeout 20000 && npx playwright test --reporter=json > playwright-report.json; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
| 26 | + "test:visual": "pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://127.0.0.1:3000/api/debug/ping --timeout 20000 && playwright test; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
31 | 27 | "test:all": "pnpm run test:visual && pnpm run test:unit", |
32 | | - "test:quick": "pnpm run build && pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://$npm_package_config_host:$npm_package_config_port/api/debug/ping --timeout 20000 && playwright test --reporter=dot; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
| 28 | + "test:quick": "pnpm run build && pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://127.0.0.1:3000/api/debug/ping --timeout 20000 && playwright test --reporter=dot; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
33 | 29 | "test:visual:ui": "playwright test --ui", |
34 | | - "test:visual:update": "pnpm run build && pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://$npm_package_config_host:$npm_package_config_port/api/debug/ping --timeout 20000 && playwright test --update-snapshots --reporter=dot; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
| 30 | + "test:visual:update": "pnpm run build && pnpm exec cross-env TESTING=true bash start-production.sh > /tmp/hrm-server.log 2>&1 & echo $! > /tmp/hrm-server.pid && npx wait-on http://127.0.0.1:3000/api/debug/ping --timeout 20000 && playwright test --update-snapshots --reporter=dot; kill $(cat /tmp/hrm-server.pid) 2>/dev/null || true", |
35 | 31 | "test:visual:headed": "playwright test --project=chromium --headed", |
36 | 32 | "test:visual:report": "playwright show-report", |
37 | 33 | "test:oauth:local": "python3 scripts/verify_oauth_local.py", |
|
0 commit comments