1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Context } from 'jest-runtime';
|
8 | import type { Test } from 'jest-runner';
|
9 | import type { Config } from '@jest/types';
|
10 | export declare type Stats = {
|
11 | roots: number;
|
12 | testMatch: number;
|
13 | testPathIgnorePatterns: number;
|
14 | testRegex: number;
|
15 | testPathPattern?: number;
|
16 | };
|
17 | export declare type TestRunData = Array<{
|
18 | context: Context;
|
19 | matches: {
|
20 | allTests: number;
|
21 | tests: Array<Test>;
|
22 | total?: number;
|
23 | stats?: Stats;
|
24 | };
|
25 | }>;
|
26 | export declare type TestPathCases = Array<{
|
27 | stat: keyof Stats;
|
28 | isMatch: (path: Config.Path) => boolean;
|
29 | }>;
|
30 | export declare type TestPathCasesWithPathPattern = TestPathCases & {
|
31 | testPathPattern: (path: Config.Path) => boolean;
|
32 | };
|
33 | export declare type FilterResult = {
|
34 | test: string;
|
35 | message: string;
|
36 | };
|
37 | export declare type Filter = (testPaths: Array<string>) => Promise<{
|
38 | filtered: Array<FilterResult>;
|
39 | }>;
|