import { defineConfig } from 'vitest/config';

// Pure-engine tests run in Node. The repository contract tests pull in
// `fake-indexeddb/auto`, which polyfills IndexedDB into the Node global, so
// they run here too without a DOM.
export default defineConfig({
  test: {
    environment: 'node',
    include: ['src/lib/**/*.test.ts'],
    globals: false,
  },
});
