Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

TestAnnotation

11 exports Since v2.0.0 Source

Other

Since v2.0.0

Signature

declare function compose<A>(left: Either<Chunk<A>, number>, right: Either<Chunk<A>, number>): Either<Chunk<A>, number>
Since v2.0.0

Signature

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

An annotation which counts ignored tests.

Signature

declare const ignored: TestAnnotation<number>

Signature

declare function isTestAnnotation(u: unknown): u is TestAnnotation<unknown>
Since v2.0.0

Signature

declare function make<A>(identifier: string, initial: A, combine: (a: A, b: A) => A): TestAnnotation<A>
Since v2.0.0

An annotation which counts repeated tests.

Signature

declare const repeated: TestAnnotation<number>
Since v2.0.0

An annotation which counts retried tests.

Signature

declare const retried: TestAnnotation<number>
Since v2.0.0

An annotation which tags tests with strings.

Signature

declare const tagged: TestAnnotation<HashSet.HashSet<string>>
Since v2.0.0

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

Signature

type TestAnnotationTypeId = typeof TestAnnotationTypeId