Skip to content

Commit

Permalink
Revert "only warns & errors get caught by selenium"
Browse files Browse the repository at this point in the history
This reverts commit 28720ee.
  • Loading branch information
Judahmeek committed May 27, 2023
1 parent 28720ee commit cf1525b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node_package/src/ComponentRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { RegisteredComponent, ReactComponentOrRenderFunction, RenderFunctio
import isRenderFunction from './isRenderFunction';

function logRegisteredComponents(value: string, key: string) {
console.warn(key);
console.info(key);
}

const registeredComponents = new Map();
Expand All @@ -21,7 +21,7 @@ export default {
if (!component) {
throw new Error(`Called register with null component named ${name}`);
}
console.warn("registering ".concat(name, " component"));
console.info("registering ".concat(name, " component"));

const renderFunction = isRenderFunction(component);
const isRenderer = renderFunction && (component as RenderFunction).length === 3;
Expand All @@ -33,7 +33,7 @@ export default {
isRenderer,
});

console.warn("Registered components: ");
console.info("Registered components: ");
registeredComponents.forEach(logRegisteredComponents)
});
},
Expand Down

0 comments on commit cf1525b

Please sign in to comment.