15 lines
268 B
TypeScript
Executable file
15 lines
268 B
TypeScript
Executable file
/**
|
|
* Vitest setup file
|
|
*/
|
|
|
|
import { cleanup } from '@testing-library/react'
|
|
import { afterEach, vi } from 'vitest'
|
|
import '@testing-library/jest-dom/vitest'
|
|
|
|
// Cleanup after each test
|
|
afterEach(() => {
|
|
cleanup()
|
|
})
|
|
|
|
// Mock fetch globally
|
|
global.fetch = vi.fn()
|