import { describe, it, expect } from 'vitest'; // Phase 1 sentinel test. // // This test exists purely to prove the test infrastructure is wired: // - vitest can find and run *.test.ts files, // - the happy-dom environment is active (so Plan 03 can rely on `window` // for its IndexedDB-via-fake-indexeddb tests). // // Delete this file once real tests exist (Plan 03 onward). describe('phase-1 test infrastructure sentinel', () => { it('vitest is wired and the happy-dom environment is active', () => { expect(1 + 1).toBe(2); // happy-dom provides `window` in the test env, which save tests will rely on // for IndexedDB. Assert it exists so Plan 03 can trust the env. expect(typeof globalThis.window).toBe('object'); }); });