test(03-12): RED — WR-03 blank edit, WR-03 recurrence, WR-05 zone, IN-03 export

- WR-03 blank: assert title re-populates when occurrence arrives in TanStack cache after form opens (fails: reset effect ignores occurrence in deps)
- WR-03 recurrence: assert weekly recurring event preselects 'weekly' not 'none' (fails: reset effect hard-codes 'none')
- IN-03: assert todayIso is exported from calendarStore (fails: currently private)
- WR-05: zone-consistent parseDateTime test with TZ=UTC pinned in vitest.config.ts env block
- Pin TZ=UTC in vitest.config.ts for deterministic date-extraction assertions
This commit is contained in:
Lucas Berger
2026-06-05 20:38:18 -04:00
parent 941c4d621f
commit 02e312acdc
2 changed files with 235 additions and 2 deletions
+5
View File
@@ -5,5 +5,10 @@ export default defineConfig({
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test-setup.ts'],
// Pin test runner timezone to UTC so WR-05 date-extraction tests are deterministic
// regardless of the developer's local machine zone or CI runner zone.
// With TZ=UTC, new Date('2026-06-10T23:30:00-04:00').getFullYear() etc. return the
// UTC wall-clock values, making assertions stable across EDT/PST/UTC environments.
env: { TZ: 'UTC' },
},
})