Add cost metrics to analytics dashboard
This commit is contained in:
20
bun-test.d.ts
vendored
Normal file
20
bun-test.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user