Skip to content

Commit dfe4cb1

Browse files
committed
add the stub type
1 parent 97d507d commit dfe4cb1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/jest-types/src/Config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ import chalk = require('chalk');
1212
type CoverageProvider = 'babel' | 'v8';
1313

1414
export type Path = string;
15+
export type PathID = string;
16+
// Keeping RPth of the same length as Path for now, to keep diffs to minimum
17+
// will rename it later.
18+
export type RPth = {
19+
// the initial path as it was used before this PR
20+
// replace it with other properties:
21+
// 1. realpath - full path resolved using smth. like _getRealPath()
22+
// 2. filename - just the file name w/o the containing directies
23+
// 3. extname - just the extension (to speed up a bit)
24+
// 4. dirname - just the dir name (to speed up a bit)
25+
readonly path: string
26+
// prob. the real path + the query string
27+
readonly id: PathID,
28+
};
1529

1630
export type Glob = string;
1731

0 commit comments

Comments
 (0)