glam/frontend/tests/setup.ts
kempersc 2761857b0d Add scripts for converting OWL/Turtle ontology to Mermaid and PlantUML diagrams
- Implemented `owl_to_mermaid.py` to convert OWL/Turtle files into Mermaid class diagrams.
- Implemented `owl_to_plantuml.py` to convert OWL/Turtle files into PlantUML class diagrams.
- Added two new PlantUML files for custodian multi-aspect diagrams.
2025-11-22 23:01:13 +01:00

25 lines
477 B
TypeScript

/**
* Vitest Setup File
* Configure testing environment
*/
import { expect, afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import '@testing-library/jest-dom/vitest';
// Cleanup after each test
afterEach(() => {
cleanup();
});
// Mock IndexedDB for tests
const indexedDB = {
open: () => ({
result: {},
onsuccess: null,
onerror: null,
onupgradeneeded: null,
}),
};
global.indexedDB = indexedDB as unknown as IDBFactory;