UNPKG

899 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7export declare type Milliseconds = number;
8declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled';
9declare type Callsite = {
10 column: number;
11 line: number;
12};
13export declare type AssertionResult = {
14 ancestorTitles: Array<string>;
15 duration?: Milliseconds | null;
16 failureDetails: Array<unknown>;
17 failureMessages: Array<string>;
18 fullName: string;
19 invocations?: number;
20 location?: Callsite | null;
21 numPassingAsserts: number;
22 status: Status;
23 title: string;
24};
25export declare type SerializableError = {
26 code?: unknown;
27 message: string;
28 stack: string | null | undefined;
29 type?: string;
30};
31export {};