File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed
Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 44
55### Fixes
66
7+ - ` [jest-config] ` Do not warn about ` preset ` in ` ProjectConfig ` [ #13583 ] ( https://github.com/facebook/jest/pull/13583 )
8+
79### Chore & Maintenance
810
911### Performance
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ export const initialProjectOptions: Config.InitialProjectOptions = {
261261 } ,
262262 modulePathIgnorePatterns : [ '<rootDir>/build/' ] ,
263263 modulePaths : [ '/shared/vendor/modules' ] ,
264+ preset : 'react-native' ,
264265 prettierPath : '<rootDir>/node_modules/prettier' ,
265266 resetMocks : false ,
266267 resetModules : false ,
Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ export type ProjectConfig = {
448448 moduleNameMapper : Array < [ string , string ] > ;
449449 modulePathIgnorePatterns : Array < string > ;
450450 modulePaths ?: Array < string > ;
451+ preset ?: string ;
451452 prettierPath : string ;
452453 resetMocks : boolean ;
453454 resetModules : boolean ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export const format = (value: unknown): string =>
2222export const formatPrettyObject = ( value : unknown ) : string =>
2323 typeof value === 'function'
2424 ? value . toString ( )
25+ : typeof value === 'undefined'
26+ ? 'undefined'
2527 : JSON . stringify ( value , null , 2 ) . split ( '\n' ) . join ( '\n ' ) ;
2628
2729export class ValidationError extends Error {
You can’t perform that action at this time.
0 commit comments