@as-pect/assembly
Version:
Write AssemblyScript tests at blazing fast speeds
82 lines (68 loc) • 2.38 kB
text/typescript
import { noOp } from "./noOp";
// @ts-ignore: Decorators *are* valid here!
("__aspect", "beforeEach")
export declare function beforeEach(callback: () => void): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "beforeAll")
export declare function beforeAll(callback: () => void): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "afterEach")
export declare function afterEach(callback: () => void): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "afterAll")
export declare function afterAll(callback: () => void): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "reportTodo")
export declare function todo(description: string): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "debug")
export declare function debug(): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "reportTodo")
export declare function xit(description: string, callback: () => void): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "reportTodo")
export declare function xtest(description: string, callback: () => void): void;
// @ts-ignore: decorators *are* valid here
("__aspect", "reportTestTypeNode")
export declare function it(description: string, runner: () => void): void;
// @ts-ignore: decorators *are* valid here
("__aspect", "reportTestTypeNode")
export declare function test(description: string, runner: () => void): void;
// @ts-ignore: decorators *are* valid here
("__aspect", "reportNegatedTestNode")
export declare function itThrows(
description: string,
runner: () => void,
// @ts-ignore: this is a valid syntax
message: string | null = null,
): void;
// @ts-ignore: decorators *are* valid here
("__aspect", "reportNegatedTestNode")
export declare function throws(
description: string,
runner: () => void,
// @ts-ignore: this is a valid syntax
message: string | null = null,
): void;
// @ts-ignore: Decorators *are* valid here!
("__aspect", "reportGroupTypeNode")
export declare function describe(
// @ts-ignore: this is a valid syntax
description: string = "",
// @ts-ignore: this is a valid syntax
runner: () => void = noOp,
): void;