mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-18 18:14:19 +00:00

* add admin audit (#5041) * Test audit (#5058) * feat: operation index * fix: delete update vector * perf: Clear invalid data * perf: index * perf: cleare invalid data * index * perf: audit event * fix: schema enum * add audit.svg (#5060) Co-authored-by: dreamer6680 <146868355@qq.com> * update package * perf: audit * perf: code move * eslint * doc --------- Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com> Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
11 lines
234 B
TypeScript
11 lines
234 B
TypeScript
import { vi } from 'vitest';
|
|
import './request';
|
|
|
|
vi.mock(import('@fastgpt/service/support/audit/util'), async (importOriginal) => {
|
|
const actual = await importOriginal();
|
|
return {
|
|
...actual,
|
|
addAuditLog: vi.fn()
|
|
};
|
|
});
|