mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-28 01:02:28 +08:00
Introduces a new, extensible sandbox adapter architecture to abstract various sandbox providers behind a unified ISandbox interface. This design utilizes an adapter pattern with a BaseSandboxAdapter, enabling easy integration of providers like OpenSandboxAdapter and MinimalProviderAdapter. It ensures consistent functionality across environments through capability-driven polyfills for missing features. This provides a scalable and maintainable foundation for different execution environments.
10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// This configuration runs the sandbox tests in isolation,
|
|
// without the global setup (e.g., MongoDB connection) from the root config.
|
|
dir: 'tests',
|
|
testTimeout: 30000,
|
|
},
|
|
}); |