UNPKG

@plugjs/expect5

Version:

Unit Testing for the PlugJS Build System ========================================

34 lines (33 loc) 1.27 kB
import type { ForkOptions } from '@plugjs/plug/fork'; export { skip } from './execution/executable'; export { afterAll, afterEach, beforeAll, beforeEach, describe, fdescribe, fit, it, xafterAll, xafterEach, xbeforeAll, xbeforeEach, xdescribe, xit, } from './execution/setup'; export * from './expectation/expect'; /** Options to construct our {@link Jasmine} plug. */ export interface TestOptions extends ForkOptions { /** Report up to the specified amount of failures (default: `+Infinity`) */ maxFailures?: number; /** * Specify whether the variables (`describe`, `it`, `expect`, ...) will be * exposed as _global_ variables to tests or not (default: `true`) */ globals?: boolean; /** * Print differences between expected and actual values from generic errors * (e.g. `AssertionError` or _Chai_ expectations) (default: `true`) */ genericErrorDiffs?: boolean; /** * Dump an extended summary of the text execution (default: `false`). */ summary?: boolean; } declare module '@plugjs/plug' { interface Pipe { /** * Run tests. * * @param options Optional {@link TestOptions | options}. */ test(options?: TestOptions): Promise<undefined>; } }