Skip to content

TestAnnotation

11 exports Added in v2.0.0 Source

Other

compose

Added in v2.0.0 Source

Signature

declare function compose<A>(
  left: Either<Chunk<A>, number>,
  right: Either<Chunk<A>, number>,
): Either<Chunk<A>, number>;

fibers

Added in v2.0.0 Source

Signature

declare const fibers: TestAnnotation<
  Either.Either<
    Chunk.Chunk<MutableRef.MutableRef<SortedSet.SortedSet<Fiber.RuntimeFiber<unknown, unknown>>>>,
    number
  >
>;

ignored

Added in v2.0.0 Source

An annotation which counts ignored tests.

Signature

declare const ignored: TestAnnotation<number>;

Signature

declare function isTestAnnotation(u: unknown): u is TestAnnotation<unknown>;

make

Added in v2.0.0 Source

Signature

declare function make<A>(
  identifier: string,
  initial: A,
  combine: (a: A, b: A) => A,
): TestAnnotation<A>;

repeated

Added in v2.0.0 Source

An annotation which counts repeated tests.

Signature

declare const repeated: TestAnnotation<number>;

retried

Added in v2.0.0 Source

An annotation which counts retried tests.

Signature

declare const retried: TestAnnotation<number>;

tagged

Added in v2.0.0 Source

An annotation which tags tests with strings.

Signature

declare const tagged: TestAnnotation<HashSet.HashSet<string>>;

TestAnnotation interface

Added in v2.0.0 Source

Signature

interface TestAnnotation<in out A> extends Equal {
  readonly [TestAnnotationTypeId]: {
    readonly _A: Invariant<A>;
  };
  readonly identifier: string;
  readonly initial: A;
  combine(a: A, b: A): A;
}

Signature

declare const TestAnnotationTypeId: unique symbol;

TestAnnotationTypeId type

Added in v2.0.0 Source

Signature

type TestAnnotationTypeId = typeof TestAnnotationTypeId;