1 | /**
|
2 | * @module Core
|
3 | */
|
4 | import { IReport, IGroupReport, ITestReport } from '../Contracts';
|
5 | /**
|
6 | * Tests store class records the tests being executed and
|
7 | * returns a report to be used by the reporters.
|
8 | */
|
9 | export declare class TestsStore {
|
10 | private _store;
|
11 | private _processStart;
|
12 | /**
|
13 | * Returns the currently active group
|
14 | */
|
15 | get activeGroup(): {
|
16 | title: string;
|
17 | failedTests: {
|
18 | title: string;
|
19 | error: Error;
|
20 | }[];
|
21 | failedHooks: {
|
22 | title: string;
|
23 | error: Error;
|
24 | }[];
|
25 | };
|
26 | /**
|
27 | * Record the group
|
28 | */
|
29 | recordGroup(group: IGroupReport): void;
|
30 | /**
|
31 | * End the group and record failed hooks
|
32 | */
|
33 | endGroup(group: IGroupReport): void;
|
34 | /**
|
35 | * Record the test
|
36 | */
|
37 | recordTest(test: ITestReport): void;
|
38 | /**
|
39 | * Open store
|
40 | */
|
41 | open(): void;
|
42 | /**
|
43 | * Close store
|
44 | */
|
45 | close(): void;
|
46 | /**
|
47 | * Return store report
|
48 | */
|
49 | getReport(): IReport;
|
50 | }
|
51 | /**
|
52 | * Returns a boolean telling if exception is part of core exceptions or
|
53 | * not.
|
54 | */
|
55 | export declare function isCoreException(error: any): boolean;
|