1 | export { production } from "./environment.js";
|
2 | export const extensive: boolean;
|
3 | export const envSeed: number | null;
|
4 | export class TestCase {
|
5 | |
6 |
|
7 |
|
8 |
|
9 | constructor(moduleName: string, testName: string);
|
10 | /**
|
11 | * @type {string}
|
12 | */
|
13 | moduleName: string;
|
14 | |
15 |
|
16 |
|
17 | testName: string;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 | meta: Map<string, any>;
|
24 | _seed: number | null;
|
25 | _prng: prng.PRNG | null;
|
26 | resetSeed(): void;
|
27 | |
28 |
|
29 |
|
30 | get seed(): number;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | get prng(): prng.PRNG;
|
37 | }
|
38 | export const repetitionTime: number;
|
39 | export function run(moduleName: string, name: string, f: (arg0: TestCase) => void | Promise<any>, i: number, numberOfTests: number): Promise<boolean>;
|
40 | export function describe(description: string, info?: string): void;
|
41 | export function info(info: string): void;
|
42 | export const printDom: (_createNode: () => Node) => void;
|
43 | export const printCanvas: (canvas: HTMLCanvasElement, height: number) => void;
|
44 | export function group(description: string, f: (...args: any[]) => void): void;
|
45 | export function groupAsync(description: string, f: (...args: any[]) => Promise<any>): Promise<void>;
|
46 | export function measureTime(message: string, f: (...args: any[]) => void): number;
|
47 | export function measureTimeAsync(message: string, f: (...args: any[]) => Promise<any>): Promise<number>;
|
48 | export function compareArrays<T>(as: T[], bs: T[], m?: string | undefined): boolean;
|
49 | export function compareStrings(a: string, b: string, m?: string | undefined): void;
|
50 | export function compareObjects<K, V>(a: any, b: any, m?: string | undefined): void;
|
51 | export function compare<T>(a: T, b: T, message?: string | null | undefined, customCompare?: ((arg0: any, arg1: T, arg2: T, arg3: string, arg4: any) => boolean) | undefined): boolean;
|
52 | export function assert<T>(property: T, message?: string | null | undefined): asserts property is NonNullable<T>;
|
53 | export function promiseRejected(f: (...args: any[]) => Promise<any>): Promise<void>;
|
54 | export function fails(f: (...args: any[]) => void): void;
|
55 | export function failsAsync(f: (...args: any[]) => Promise<any>): Promise<void>;
|
56 | export function runTests(tests: {
|
57 | [x: string]: {
|
58 | [x: string]: (arg0: TestCase) => void | Promise<any>;
|
59 | };
|
60 | }): Promise<boolean>;
|
61 | export function fail(reason: string): never;
|
62 | export function skip(cond?: boolean): void;
|
63 | import * as prng from './prng.js';
|
64 |
|
\ | No newline at end of file |