dustinkeeton_obsidian-synapse/vitest.config.ts
Dustin Keeton a3d79195d6 Add centralized notification system with cancellation and two-phase vault scan
- NotificationManager tracks concurrent operations with animated ellipsis,
  color-coded notices (progress/success/warning/error), and live status bar
- Running operations are non-dismissible with an explicit Cancel button;
  clicking the notice background no longer silently hides it
- Vault scan is now two-phase: lightweight detection pass, then a
  confirmation snackbar before heavy AI proposal generation
- Graceful cancellation: cancelled operations auto-reject any proposals
  created during the run; batch transcriptions preserve partial work
- Tests: 25 new tests for blockquoteOriginal and NotificationManager
  (state machine, cancellation, status bar, error redaction)
- Fixed vitest config: obsidian alias replaces vi.mock for proper
  class instantiation in tests; Notice mock gains DOM-like stub methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 02:17:50 -07:00

16 lines
340 B
TypeScript

import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
resolve: {
alias: {
obsidian: path.resolve(__dirname, 'src/__mocks__/obsidian.ts'),
},
},
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts'],
setupFiles: ['./src/__test-utils__/setup.ts'],
},
});