1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Config } from '@jest/types';
|
8 | export declare type Options = {
|
9 | lastCommit?: boolean;
|
10 | withAncestor?: boolean;
|
11 | changedSince?: string;
|
12 | includePaths?: Array<Config.Path>;
|
13 | };
|
14 | declare type Paths = Set<Config.Path>;
|
15 | export declare type Repos = {
|
16 | git: Paths;
|
17 | hg: Paths;
|
18 | };
|
19 | export declare type ChangedFiles = {
|
20 | repos: Repos;
|
21 | changedFiles: Paths;
|
22 | };
|
23 | export declare type ChangedFilesPromise = Promise<ChangedFiles>;
|
24 | export declare type SCMAdapter = {
|
25 | findChangedFiles: (cwd: Config.Path, options: Options) => Promise<Array<Config.Path>>;
|
26 | getRoot: (cwd: Config.Path) => Promise<Config.Path | null>;
|
27 | };
|
28 | export {};
|