Files
FastGPT/test/integrationTest/vectorDB/pg/index.integration.test.ts
Archer e6c7593d95 Sandbox move and vector test (#6381)
* remove sandbox

* perf: vitest

* doc
2026-02-04 14:27:58 +08:00

16 lines
518 B
TypeScript

import { describe, vi } from 'vitest';
import { createVectorDBTestSuite } from '../testSuites';
// Unmock vector controllers for integration tests
vi.unmock('@fastgpt/service/common/vectorDB/pg');
vi.unmock('@fastgpt/service/common/vectorDB/constants');
import { PgVectorCtrl } from '@fastgpt/service/common/vectorDB/pg';
const isEnabled = Boolean(process.env.PG_URL);
describe.skipIf(!isEnabled)('PG Vector Integration', () => {
const vectorCtrl = new PgVectorCtrl();
createVectorDBTestSuite(vectorCtrl);
});