Fix telemetry test mocking in agent skill routes
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
37b6ad42ea
commit
9b3ad6e616
1 changed files with 3 additions and 9 deletions
|
|
@ -59,15 +59,9 @@ const mockAdapter = vi.hoisted(() => ({
|
||||||
syncSkills: vi.fn(),
|
syncSkills: vi.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("@paperclipai/shared/telemetry", async () => {
|
vi.mock("@paperclipai/shared/telemetry", () => ({
|
||||||
const actual = await vi.importActual<typeof import("@paperclipai/shared/telemetry")>(
|
trackAgentCreated: mockTrackAgentCreated,
|
||||||
"@paperclipai/shared/telemetry",
|
}));
|
||||||
);
|
|
||||||
return {
|
|
||||||
...actual,
|
|
||||||
trackAgentCreated: mockTrackAgentCreated,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
vi.mock("../telemetry.js", () => ({
|
vi.mock("../telemetry.js", () => ({
|
||||||
getTelemetryClient: mockGetTelemetryClient,
|
getTelemetryClient: mockGetTelemetryClient,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue