mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-27 02:08:10 +08:00
44d64ce40e
* feat: sandbox_server * docker build * action
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();
|
|
});
|