mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-08 01:08:43 +08:00
chore: bump pro submodule for hydration stability (#6808)
* sandbox-sync-agent * refactor: host pro as submodule * chore: checkpoint host pro restructure * refactor workspace test layout and startup init * chore: update next turbopack setup * chore: snapshot current work before actions fix * chore: update pro submodule * chore: point pro submodule url to upstream https * fix: Dockerfile * chore: update pro submodule * ci: support private pro submodule token and skip fork jobs * fix(ci): build sdk workspace deps before code-sandbox bundle * fix(app): exclude vitest configs from production typecheck * fix(app-image): build sdk packages before next build * fix(ci): align dockerfiles with workspace sdk build flow * chore(docker): upgrade node20 docker images to node24 * fix(ci): read admin coverage output path in pro test workflow * fix(app-image): include next-i18next config and locale assets * chore: update pro submodule * chore: do not specify branch for submodule * chore: remove most ts-nocheck sign * chore: update pro submodule * chore: remove sandbox-agent-sync package * chore: do not modify "pushData" file logic * fix: health check * chore: restore dev axios proxy state * fix: test-fastgpt report workflow * fix: use valid vitest coverage action inputs
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import path from 'node:path';
|
||||
import { vi } from 'vitest';
|
||||
|
||||
vi.mock('@fastgpt/service/common/geo/constants', async (importOriginal) => {
|
||||
const actual = (await importOriginal()) as any;
|
||||
return {
|
||||
...actual,
|
||||
dbPath: path.join(process.cwd(), 'projects/app/data/GeoLite2-City.mmdb')
|
||||
};
|
||||
});
|
||||
@@ -29,15 +29,17 @@ export const mockGetVectorCountByTeamId = vi.fn().mockResolvedValue(100);
|
||||
|
||||
export const mockGetVectorCount = vi.fn().mockResolvedValue(50);
|
||||
|
||||
const MockVectorCtrl = vi.fn().mockImplementation(() => ({
|
||||
init: mockVectorInit,
|
||||
insert: mockVectorInsert,
|
||||
delete: mockVectorDelete,
|
||||
embRecall: mockVectorEmbRecall,
|
||||
getVectorDataByTime: mockGetVectorDataByTime,
|
||||
getVectorCountByTeamId: mockGetVectorCountByTeamId,
|
||||
getVectorCount: mockGetVectorCount
|
||||
}));
|
||||
const MockVectorCtrl = vi.fn().mockImplementation(function () {
|
||||
return {
|
||||
init: mockVectorInit,
|
||||
insert: mockVectorInsert,
|
||||
delete: mockVectorDelete,
|
||||
embRecall: mockVectorEmbRecall,
|
||||
getVectorDataByTime: mockGetVectorDataByTime,
|
||||
getVectorCountByTeamId: mockGetVectorCountByTeamId,
|
||||
getVectorCount: mockGetVectorCount
|
||||
};
|
||||
});
|
||||
|
||||
// Mock PgVectorCtrl
|
||||
vi.mock('@fastgpt/service/common/vectorDB/pg', () => ({
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import './request';
|
||||
import './common/geo';
|
||||
import './common/mongo';
|
||||
import './common/redis';
|
||||
import './common/bullmq';
|
||||
|
||||
Reference in New Issue
Block a user