You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.",
17
26
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.",
"Minified React error #152; visit https://legacy.reactjs.org/docs/error-decoder.html?invariant=152&args[]=NGABuilder for the full message or use the non-minified dev environment for full errors and additional helpful warnings.",
25
34
"Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",
test("Leave an error not in dictionary as is",(): void=>{
31
43
constinput=
32
44
"Minified React error #223; visit https://reactjs.org/docs/error-decoder.html?invariant=223&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
33
-
expect(decode(input)).toBe(input);
45
+
equal(decode(input),input);
34
46
});
35
47
test("creates an object from regular error messages",(): void=>{
36
-
expect(decode.details("Something must have gone horribly wrong")).toEqual({
48
+
deepEqual(decode.details("Something must have gone horribly wrong"),{
37
49
message: "Something must have gone horribly wrong",
38
50
url: undefined,
39
51
invariant: undefined,
40
52
});
41
53
});
42
-
test.each([
54
+
[
43
55
"visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message",
44
56
"Minified React error #1: Something else has gone wrong.",
45
57
"Minified React error #1: Something else has gone wrong. https://www.facebook.com",
46
58
"Minified React error #1: Something else has gone wrong. https://www.facebook.com?invariant=900",
47
-
])("falls back to original message",(message: string): void=>
0 commit comments