mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-28 01:02:28 +08:00
17 lines
366 B
TypeScript
17 lines
366 B
TypeScript
import { beforeAll, afterAll, vi } from 'vitest';
|
|
import { loadEnvFiles } from './utils/env';
|
|
|
|
// Set test environment
|
|
process.env.NODE_ENV = 'test';
|
|
|
|
// Load environment variables from .env.test.local if exists
|
|
loadEnvFiles({ envFileNames: ['.env.test.local'] });
|
|
|
|
beforeAll(() => {
|
|
// Additional setup if needed
|
|
});
|
|
|
|
afterAll(() => {
|
|
vi.restoreAllMocks();
|
|
});
|