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(),
|
||||
}));
|
||||
|
||||
vi.mock("@paperclipai/shared/telemetry", async () => {
|
||||
const actual = await vi.importActual<typeof import("@paperclipai/shared/telemetry")>(
|
||||
"@paperclipai/shared/telemetry",
|
||||
);
|
||||
return {
|
||||
...actual,
|
||||
trackAgentCreated: mockTrackAgentCreated,
|
||||
};
|
||||
});
|
||||
vi.mock("@paperclipai/shared/telemetry", () => ({
|
||||
trackAgentCreated: mockTrackAgentCreated,
|
||||
}));
|
||||
|
||||
vi.mock("../telemetry.js", () => ({
|
||||
getTelemetryClient: mockGetTelemetryClient,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue