|
8 | 8 | import type {ForegroundColor} from 'chalk';
|
9 | 9 | import type {ReportOptions} from 'istanbul-reports';
|
10 | 10 | import type {Arguments} from 'yargs';
|
| 11 | +import type {SnapshotFormat} from '@jest/schemas'; |
11 | 12 |
|
12 | 13 | type CoverageProvider = 'babel' | 'v8';
|
13 | 14 |
|
@@ -60,9 +61,6 @@ export interface ConfigGlobals {
|
60 | 61 | [K: string]: unknown;
|
61 | 62 | }
|
62 | 63 |
|
63 |
| -// This interface gets filled out when pretty-format is included |
64 |
| -export interface PrettyFormatOptions {} |
65 |
| - |
66 | 64 | export type DefaultOptions = {
|
67 | 65 | automock: boolean;
|
68 | 66 | bail: number;
|
@@ -228,7 +226,7 @@ export type InitialOptions = Partial<{
|
228 | 226 | slowTestThreshold: number;
|
229 | 227 | snapshotResolver: Path;
|
230 | 228 | snapshotSerializers: Array<Path>;
|
231 |
| - snapshotFormat: PrettyFormatOptions; |
| 229 | + snapshotFormat: SnapshotFormat; |
232 | 230 | errorOnDeprecated: boolean;
|
233 | 231 | testEnvironment: string;
|
234 | 232 | testEnvironmentOptions: Record<string, unknown>;
|
@@ -330,7 +328,7 @@ export type GlobalConfig = {
|
330 | 328 | rootDir: Path;
|
331 | 329 | silent?: boolean;
|
332 | 330 | skipFilter: boolean;
|
333 |
| - snapshotFormat: PrettyFormatOptions; |
| 331 | + snapshotFormat: SnapshotFormat; |
334 | 332 | errorOnDeprecated: boolean;
|
335 | 333 | testFailureExitCode: number;
|
336 | 334 | testNamePattern?: string;
|
@@ -393,7 +391,7 @@ export type ProjectConfig = {
|
393 | 391 | slowTestThreshold: number;
|
394 | 392 | snapshotResolver?: Path;
|
395 | 393 | snapshotSerializers: Array<Path>;
|
396 |
| - snapshotFormat: PrettyFormatOptions; |
| 394 | + snapshotFormat: SnapshotFormat; |
397 | 395 | testEnvironment: string;
|
398 | 396 | testEnvironmentOptions: Record<string, unknown>;
|
399 | 397 | testMatch: Array<Glob>;
|
|
0 commit comments