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
We used to run the error transform in both production and development,
because in development it was used to convert `invariant` calls into
throw statements.
Now that don't use `invariant` anymore, we only have to run the
transform for production builds.
Error(__DEV__ ? \\"Expected \`\\" + listener + \\"\` listener to be a function, instead got a value of \`\\" + type + \\"\` type.\\" : _formatProdErrorMessage(231, listener, type));"
6
6
`;
7
7
8
-
exports[`error transform should correctly transform invariants that are not in the error codes map 1`] =`
9
-
"import invariant from 'shared/invariant';
10
-
11
-
/*FIXME (minify-errors-in-prod): Unminified error message in production build!*/
12
-
if (!condition) {
13
-
throwError(\\"This is not a real error message.\\");
14
-
}"
15
-
`;
16
-
17
-
exports[`error transform should handle escaped characters 1`] =`
18
-
"import invariant from 'shared/invariant';
19
-
20
-
/*FIXME (minify-errors-in-prod): Unminified error message in production build!*/
21
-
if (!condition) {
22
-
throwError(\\"What's up?\\");
23
-
}"
24
-
`;
25
-
26
8
exports[`error transform should not touch other calls or new expressions 1`] =`
0 commit comments