Tests for auth refresh, ad viewability and URL safety; nginx, Dockerfile, README

- Jest: single-flight refresh, session expiry vs transient errors, token save on login change,
  logout revoke, IAB viewability, safe URLs, HTML escaping, password policy, ad session id
- test:ci with explicit testMatch (dot-directories in worktree paths hid all tests)
- nginx: gzip, nosniff/Referrer-Policy/X-Frame-Options, no-cache for index.html
- Dockerfile: npm ci, REACT_APP_WS_ERROR_QUEUE build arg
- README: new backend contracts, flags, compatibility notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SlimusMinus
2026-10-20 11:56:39 +03:00
parent 804018d2ce
commit a029254cf0
10 changed files with 485 additions and 26 deletions

View File

@@ -25,7 +25,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:ci": "react-scripts test --watchAll=false",
"test:ci": "react-scripts test --watchAll=false --testMatch \"**/src/**/*.test.{js,jsx,ts,tsx}\"",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --max-warnings=0",
"typecheck": "tsc --noEmit",
"eject": "react-scripts eject"