6 Commits

Author SHA1 Message Date
Andrea Vos
08c7e37e28 (blog) make blog posts a bit more prominent 2025-04-19 15:17:12 +02:00
Valentyne Stigloher
6f9f8fc6e0 (nuxt) detect locale from requested origin 2025-03-14 19:25:57 +01:00
Adaline Simonian
23a3862ca0
test: introduce snapshot-based smoke tests
- Adds a new test suite with Docker-based smoke tests for all locales.
  Can be run using the ./smoketest.sh script.
- Replaces all calls to Math.random() with a new helper that returns 0.5
  in snapshot testing mode, ensuring deterministic snapshots.
- Similarly replaces all calls to new Date() and Date.now() with new
  helpers that return a fixed date in snapshot testing mode.
- Replaces checks against NODE_ENV with APP_ENV, to ensure that the
  bundles can be built with Nuxt for testing without losing code that
  would otherwise be stripped out by production optimizations.
- Adds a database init script that can be used to initialize the
  database with a single admin user and a long-lived JWT token for use
  in automation tests.
- Adds a JWT decoding/encoding CLI tool for debugging JWTs.

Note: Snapshots are not checked in, and must be generated manually. See
test/__snapshots__/.gitignore for more information.
2025-02-02 23:11:19 -08:00
Andrea Vos
96cd191bff (hbs) fix naski script converter
i accepted a copilot suggestion that seemed sensible, but actually accomplished the opposite ("NFD" vs "NFC")

adding tests as penance 😅
2025-01-20 22:06:34 +01:00
Andrea Vos
595c0e6222 (hbs) temporary comparison section 2025-01-14 23:12:05 +01:00
Valentyne Stigloher
a55b1a13e4 (nuxt) change index routes to pages 2025-01-12 14:12:15 +01:00