mirror of https://github.com/openclaw/openclaw.git
perf: speed up slack slash tests
This commit is contained in:
parent
17e5a5015c
commit
cd37c52624
|
|
@ -20,14 +20,6 @@ vi.mock("../../routing/resolve-route.js", () => ({
|
|||
resolveAgentRoute: (...args: unknown[]) => mocks.resolveAgentRouteMock(...args),
|
||||
}));
|
||||
|
||||
vi.mock("../../agents/identity.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("../../agents/identity.js")>();
|
||||
return {
|
||||
...actual,
|
||||
resolveEffectiveMessagesConfig: () => ({ responsePrefix: "" }),
|
||||
};
|
||||
});
|
||||
|
||||
type SlashHarnessMocks = {
|
||||
dispatchMock: ReturnType<typeof vi.fn>;
|
||||
readAllowFromStoreMock: ReturnType<typeof vi.fn>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue