Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Nov 22, 2022
1 parent 31f3cb8 commit 96269f8
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

exports[`report.error handles "Array of Errors" signature correctly 1`] = `
Object {
"category": "UNKNOWN",
"context": Object {
"sourceMessage": "Message 3 from new Error",
},
Expand All @@ -10,11 +11,13 @@ Object {
"level": "ERROR",
"stack": Any<Array>,
"text": "Message 3 from new Error",
"type": "UNKNOWN",
}
`;
exports[`report.error handles "Error" signature correctly 1`] = `
Object {
"category": "UNKNOWN",
"context": Object {
"sourceMessage": "Message from new Error",
},
Expand All @@ -23,23 +26,27 @@ Object {
"level": "ERROR",
"stack": Any<Array>,
"text": "Message from new Error",
"type": "UNKNOWN",
}
`;
exports[`report.error handles "String" signature correctly 1`] = `
Object {
"category": "UNKNOWN",
"context": Object {
"sourceMessage": "Error created in Jest",
},
"docsUrl": "https://gatsby.dev/issue-how-to",
"level": "ERROR",
"stack": Array [],
"text": "Error created in Jest",
"type": "UNKNOWN",
}
`;
exports[`report.error handles "String, Error" signature correctly 1`] = `
Object {
"category": "UNKNOWN",
"context": Object {
"sourceMessage": "Error string passed to reporter Message from new Error",
},
Expand All @@ -48,11 +55,13 @@ Object {
"level": "ERROR",
"stack": Any<Array>,
"text": "Error string passed to reporter Message from new Error",
"type": "UNKNOWN",
}
`;
exports[`report.error handles "String, Error, pluginName" signature correctly 1`] = `
Object {
"category": "UNKNOWN",
"context": Object {
"sourceMessage": "Error string passed to reporter Message from new Error",
},
Expand Down Expand Up @@ -117,6 +126,7 @@ Object {
},
],
"text": "Error string passed to reporter Message from new Error",
"type": "UNKNOWN",
}
`;
Expand All @@ -131,6 +141,7 @@ Object {
"level": "ERROR",
"stack": Array [],
"text": "\\"navigator\\" is not available during server-side rendering. Enable \\"DEV_SSR\\" to debug this during \\"gatsby develop\\".",
"type": "HTML.COMPILATION",
}
`;
Expand All @@ -144,6 +155,7 @@ Object {
"level": "ERROR",
"stack": Array [],
"text": "Error text is test123",
"type": "PLUGIN",
}
`;
Expand All @@ -158,5 +170,6 @@ Object {
"pluginName": "gatsby-plugin-foo-bar",
"stack": Array [],
"text": "Error text is test123",
"type": "PLUGIN",
}
`;

0 comments on commit 96269f8

Please sign in to comment.