-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
...ges/react-native/Libraries/LogBox/__tests__/__snapshots__/LogBox-integration-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log added to LogBox 1`] = ` | ||
Array [ | ||
Object { | ||
"category": "Warning: Invalid prop \`%s\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.", | ||
"componentStack": Array [ | ||
Object { | ||
"collapse": false, | ||
"content": "FragmentWithProp", | ||
"fileName": "<anonymous>", | ||
"location": Object { | ||
"column": -1, | ||
"row": -1, | ||
}, | ||
}, | ||
], | ||
"componentStackType": "stack", | ||
"level": "warn", | ||
"message": Object { | ||
"content": "Warning: Invalid prop \`invalid\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.", | ||
"substitutions": Array [ | ||
Object { | ||
"length": 7, | ||
"offset": 23, | ||
}, | ||
], | ||
}, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log passed to console error 1`] = ` | ||
Array [ | ||
"Warning: Invalid prop \`invalid\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props. | ||
at FragmentWithProp (<anonymous>)", | ||
] | ||
`; | ||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log sent from React 1`] = ` | ||
Array [ | ||
"Invalid prop \`%s\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.%s", | ||
"invalid", | ||
" | ||
at FragmentWithProp (<anonymous>)", | ||
] | ||
`; | ||
exports[`LogBox integrates with React and handles a key error in LogBox: Log added to LogBox 1`] = ` | ||
Array [ | ||
Object { | ||
"category": "Warning: Each child in a list should have a unique \\"key\\" prop.%s%s See https://react.dev/link/warning-keys for more information.", | ||
"componentStack": Array [ | ||
Object { | ||
"collapse": false, | ||
"content": "_classCallCheck", | ||
"fileName": "/path/to/mockComponent.js", | ||
"location": Object { | ||
"column": 17, | ||
"row": 33, | ||
}, | ||
}, | ||
Object { | ||
"collapse": false, | ||
"content": "DoesNotUseKey", | ||
"fileName": "<anonymous>", | ||
"location": Object { | ||
"column": -1, | ||
"row": -1, | ||
}, | ||
}, | ||
], | ||
"componentStackType": "stack", | ||
"level": "warn", | ||
"message": Object { | ||
"content": "Warning: Each child in a list should have a unique \\"key\\" prop. | ||
Check the render method of \`DoesNotUseKey\`. See https://react.dev/link/warning-keys for more information.", | ||
"substitutions": Array [ | ||
Object { | ||
"length": 45, | ||
"offset": 62, | ||
}, | ||
Object { | ||
"length": 0, | ||
"offset": 107, | ||
}, | ||
], | ||
}, | ||
}, | ||
] | ||
`; | ||
exports[`LogBox integrates with React and handles a key error in LogBox: Log passed to console error 1`] = ` | ||
Array [ | ||
"Warning: Each child in a list should have a unique \\"key\\" prop. | ||
Check the render method of \`DoesNotUseKey\`. See https://react.dev/link/warning-keys for more information. | ||
at _classCallCheck (/path/to/mockComponent.js:33:18) | ||
at DoesNotUseKey (<anonymous>)", | ||
] | ||
`; | ||
exports[`LogBox integrates with React and handles a key error in LogBox: Log sent from React 1`] = ` | ||
Array [ | ||
"Each child in a list should have a unique \\"key\\" prop.%s%s See https://react.dev/link/warning-keys for more information.%s", | ||
" | ||
Check the render method of \`DoesNotUseKey\`.", | ||
"", | ||
" | ||
at _classCallCheck (/path/to/mockComponent.js:33:18) | ||
at DoesNotUseKey (<anonymous>)", | ||
] | ||
`; |