File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Fixes
6
6
7
+ - ` [jest-config] ` Do not warn about ` preset ` in ` ProjectConfig ` [ #13583 ] ( https://github.com/facebook/jest/pull/13583 )
8
+
7
9
### Chore & Maintenance
8
10
9
11
### Performance
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ export const initialProjectOptions: Config.InitialProjectOptions = {
261
261
} ,
262
262
modulePathIgnorePatterns : [ '<rootDir>/build/' ] ,
263
263
modulePaths : [ '/shared/vendor/modules' ] ,
264
+ preset : 'react-native' ,
264
265
prettierPath : '<rootDir>/node_modules/prettier' ,
265
266
resetMocks : false ,
266
267
resetModules : false ,
Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ export type ProjectConfig = {
448
448
moduleNameMapper : Array < [ string , string ] > ;
449
449
modulePathIgnorePatterns : Array < string > ;
450
450
modulePaths ?: Array < string > ;
451
+ preset ?: string ;
451
452
prettierPath : string ;
452
453
resetMocks : boolean ;
453
454
resetModules : boolean ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export const format = (value: unknown): string =>
22
22
export const formatPrettyObject = ( value : unknown ) : string =>
23
23
typeof value === 'function'
24
24
? value . toString ( )
25
+ : typeof value === 'undefined'
26
+ ? 'undefined'
25
27
: JSON . stringify ( value , null , 2 ) . split ( '\n' ) . join ( '\n ' ) ;
26
28
27
29
export class ValidationError extends Error {
You can’t perform that action at this time.
0 commit comments