upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-17 17:18:43 +0530
committerYour Name <you@example.com>2026-05-17 17:18:43 +0530
commit8071741815f0b0938701e80a63e80b0ec94b2778 (patch)
tree2a1511480e0b58f4efb144aa9d10c9fba5eed034 /package.json
parent0c2c67b463d6a90aaa0bb69bf3c91dba1d9ec3ec (diff)
refactor: reorganize test suite, add integration tests for NAT filter
- Move integration tests (api, network, phase2, smoke) to tests/integration/ - Move Playwright specs (captive-portal, interop-happy-path) to tests/e2e/ - Move playwright.config.mjs to tests/e2e/ - Fix hardcoded IP fallbacks: 192.168.4.1 → 10.192.45.1 - Add test-reset-auth.mjs: reset→pay→allow→revoke→block cycle - Add test-session-expiry.mjs: pay→wait 65s→verify blocked (slow test) - Add test-dns-firewall.mjs: DNS hijack/forward + per-client NAT filter - Update Makefile with test-unit, test-integration, test-e2e, test-all targets - Update package.json scripts for new paths - Fix Playwright video: retain-on-failure instead of always-on - Update AGENTS.md: per-client NAT filter description - Update CHECKLIST.md: mark completed items, add Board B identity - Board B nsec: 9af47906... → SSID TollGate-b96d80, AP IP 10.185.47.1 - 186 unit tests passing
Diffstat (limited to 'package.json')
-rw-r--r--package.json20
1 files changed, 12 insertions, 8 deletions
diff --git a/package.json b/package.json
index dd61cd9..fe1daee 100644
--- a/package.json
+++ b/package.json
@@ -3,14 +3,18 @@
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "private": true, 4 "private": true,
5 "scripts": { 5 "scripts": {
6 "test": "node tests/api.mjs && node tests/network.mjs", 6 "test": "node tests/integration/api.mjs && node tests/integration/network.mjs",
7 "test:api": "node tests/api.mjs", 7 "test:api": "node tests/integration/api.mjs",
8 "test:network": "node tests/network.mjs", 8 "test:network": "node tests/integration/network.mjs",
9 "test:portal": "npx playwright test tests/captive-portal.spec.mjs", 9 "test:smoke": "node tests/integration/smoke.mjs",
10 "test:happy-path": "npx playwright test tests/interop-happy-path.spec.mjs", 10 "test:payment": "node tests/integration/phase2.mjs",
11 "test:interop": "npx playwright test tests/interop-esp32-openwrt.spec.mjs", 11 "test:reset-auth": "node tests/integration/test-reset-auth.mjs",
12 "test:smoke": "node tests/smoke.mjs", 12 "test:session-expiry": "node tests/integration/test-session-expiry.mjs",
13 "test:playwright": "npx playwright test" 13 "test:dns-firewall": "node tests/integration/test-dns-firewall.mjs",
14 "test:portal": "npx playwright test -c tests/e2e/playwright.config.mjs captive-portal.spec.mjs",
15 "test:happy-path": "npx playwright test -c tests/e2e/playwright.config.mjs interop-happy-path.spec.mjs",
16 "test:e2e": "npx playwright test -c tests/e2e/playwright.config.mjs",
17 "test:playwright": "npx playwright test -c tests/e2e/playwright.config.mjs"
14 }, 18 },
15 "devDependencies": { 19 "devDependencies": {
16 "@playwright/test": "^1.52.0" 20 "@playwright/test": "^1.52.0"