mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-05-24 23:16:45 +00:00
Install vitest, @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, and happy-dom as dev dependencies. Configure vitest with happy-dom environment, path aliases, and test setup file. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
8 lines
165 B
TypeScript
8 lines
165 B
TypeScript
import '@testing-library/jest-dom/vitest';
|
|
import { cleanup } from '@testing-library/react';
|
|
import { afterEach } from 'vitest';
|
|
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|