Add cost metrics to analytics dashboard

This commit is contained in:
2026-04-28 11:27:51 +08:00
parent 67e43b02bf
commit ab915e9292
13 changed files with 226 additions and 56 deletions

20
bun-test.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
declare module "bun:test" {
export const beforeEach: (fn: () => void | Promise<void>) => void;
export const describe: (name: string, fn: () => void) => void;
export const expect: (value: unknown) => {
toBe: (expected: unknown) => void;
toBeNull: () => void;
toContain: (expected: unknown) => void;
toEqual: (expected: unknown) => void;
};
export const mock: {
<T extends (...args: never[]) => unknown>(fn: T): T & {
mock: {
calls: unknown[][];
};
mockClear: () => void;
};
module: (path: string, factory: () => Record<string, unknown>) => void;
};
export const test: (name: string, fn: () => void | Promise<void>) => void;
}