We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c51db3 commit 8c7c4acCopy full SHA for 8c7c4ac
tests/error.test.ts
@@ -43,6 +43,13 @@ describe("Logger: Error with details", () => {
43
stdErr = [];
44
});
45
46
+ test("JSON: Check Error.toJSON()", (): void => {
47
+ const error = new TestError("TestError");
48
+ const errorToJson = JSON.stringify(error);
49
+
50
+ expect(errorToJson.length).toBeGreaterThan(0);
51
+ });
52
53
test("Pretty: Error with details (stdErr)", (): void => {
54
const error = new TestError("TestError");
55
loggerPretty.warn(error);
0 commit comments