feat: Enhance deployment capabilities with direct server deployment tools, email configuration, and comprehensive documentation
This commit is contained in:
59
types/bun-test.d.ts
vendored
Normal file
59
types/bun-test.d.ts
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* @Date: 2026-01-07 15:24:14
|
||||
* @LastEditors: 陈子健
|
||||
* @LastEditTime: 2026-01-07 15:26:23
|
||||
* @FilePath: /cloud-mcp/types/bun-test.d.ts
|
||||
*/
|
||||
/**
|
||||
* Type declarations for Bun test framework
|
||||
* This file provides type definitions for Bun's built-in test framework
|
||||
* Place this file in a types directory and include it in tsconfig.json
|
||||
*/
|
||||
|
||||
declare module "bun:test" {
|
||||
export function describe(name: string, fn: () => void | Promise<void>): void;
|
||||
export function test(
|
||||
name: string,
|
||||
fn: () => void | Promise<void>,
|
||||
timeout?: number
|
||||
): void;
|
||||
export function it(
|
||||
name: string,
|
||||
fn: () => void | Promise<void>,
|
||||
timeout?: number
|
||||
): void;
|
||||
export function expect(actual: any): {
|
||||
toBe(expected: any): void;
|
||||
toBeDefined(): void;
|
||||
toBeUndefined(): void;
|
||||
toBeNull(): void;
|
||||
toBeTruthy(): void;
|
||||
toBeFalsy(): void;
|
||||
toEqual(expected: any): void;
|
||||
toContain(expected: any): void;
|
||||
toMatch(pattern: string | RegExp): void;
|
||||
toThrow(error?: string | RegExp | Error): void;
|
||||
toBeGreaterThan(expected: number): void;
|
||||
toBeLessThan(expected: number): void;
|
||||
toBeGreaterThanOrEqual(expected: number): void;
|
||||
toBeLessThanOrEqual(expected: number): void;
|
||||
toBeCloseTo(expected: number, precision?: number): void;
|
||||
toBeInstanceOf(expected: any): void;
|
||||
not: {
|
||||
toBe(expected: any): void;
|
||||
toBeDefined(): void;
|
||||
toBeUndefined(): void;
|
||||
toBeNull(): void;
|
||||
toBeTruthy(): void;
|
||||
toBeFalsy(): void;
|
||||
toEqual(expected: any): void;
|
||||
toContain(expected: any): void;
|
||||
toMatch(pattern: string | RegExp): void;
|
||||
toThrow(error?: string | RegExp | Error): void;
|
||||
};
|
||||
};
|
||||
export function beforeEach(fn: () => void | Promise<void>): void;
|
||||
export function afterEach(fn: () => void | Promise<void>): void;
|
||||
export function beforeAll(fn: () => void | Promise<void>): void;
|
||||
export function afterAll(fn: () => void | Promise<void>): void;
|
||||
}
|
||||
Reference in New Issue
Block a user