test(web): silence localStorage-file warnings in vitest #428

Merged
jason.woltje merged 2 commits from fix/web-test-warnings-2 into develop 2026-02-19 01:45:07 +00:00
Owner

Root cause:
Node's built-in webstorage accessor emits a warning when accessed without a localStorage file configured. The web vitest setup was touching the accessor, so every worker logged the warning.

Change:

  • define a localStorage mock in vitest setup without reading the accessor, eliminating the warnings

Verification:

  • pnpm --filter @mosaic/web test -- src/providers/ThemeProvider.test.tsx (warnings no longer emitted)
Root cause: Node's built-in webstorage accessor emits a warning when accessed without a localStorage file configured. The web vitest setup was touching the accessor, so every worker logged the warning. Change: - define a localStorage mock in vitest setup without reading the accessor, eliminating the warnings Verification: - pnpm --filter @mosaic/web test -- src/providers/ThemeProvider.test.tsx (warnings no longer emitted)
jason.woltje added 1 commit 2026-02-19 01:38:58 +00:00
test(web): silence localStorage-file warnings in vitest setup
Some checks failed
ci/woodpecker/push/web Pipeline failed
1a668627a3
jason.woltje added 1 commit 2026-02-19 01:41:48 +00:00
chore(deps): override minimatch to 10.2.1 for audit fix
All checks were successful
ci/woodpecker/push/orchestrator Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/api Pipeline was successful
f72e8c2da9
Author
Owner

Audit update: added pnpm override for minimatch >=10.2.1 and regenerated lockfile in this branch.\n\nResult:\n- pnpm audit --audit-level=high now reports 0 high/critical, 2 moderate (ajv via eslint and @nestjs/cli).

Audit update: added pnpm override for minimatch >=10.2.1 and regenerated lockfile in this branch.\n\nResult:\n- pnpm audit --audit-level=high now reports 0 high/critical, 2 moderate (ajv via eslint and @nestjs/cli).
jason.woltje merged commit 8328f9509b into develop 2026-02-19 01:45:07 +00:00
jason.woltje deleted branch fix/web-test-warnings-2 2026-02-19 01:45:07 +00:00
Sign in to join this conversation.