Files
gmtool/vite.config.js
tevans 1348048d50 feat: <gm-shell> wiring, styles, and AFTERIMAGE boot
Adds the gm-shell root element that owns store/clock/stamps/scenario,
mounts director-rail and dice-tray, handles reached (stamp + persist)
and open-tool (toggle dice tray), and boots the AFTERIMAGE scenario in
main.js. Also adds tests/setup.js + a vite.config.js setupFiles entry:
Node's newer built-in global `localStorage` shadows jsdom's per-window
implementation in vitest's jsdom environment, leaving localStorage
undefined in tests until replaced with a real jsdom-backed instance.
2026-07-20 14:15:50 +01:00

10 lines
186 B
JavaScript

import { defineConfig } from 'vite';
export default defineConfig({
test: {
environment: 'jsdom',
include: ['tests/**/*.test.js'],
setupFiles: ['tests/setup.js'],
},
});