Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
debug: (el = baseElement) =>
Array.isArray(el)
? // eslint-disable-next-line no-console
el.forEach(e => console.log(prettyDOM(e)))
: // eslint-disable-next-line no-console,
console.log(prettyDOM(el)),
unmount: () => ReactDOM.unmountComponentAtNode(container),
el.forEach(e => console.log(prettyDOM(e)))
: // eslint-disable-next-line no-console,
debug: (el = container) => console.log(prettyDOM(el)),
container,
debug: (element = fixture.nativeElement) => console.log(prettyDOM(element)),
type: createType(eventsWithDetectChanges),
debug: (el = baseElement) => console.log(dtl.prettyDOM(el)),
unmount: () => preactRender(null, container),
debug: (el = container) => console.log(prettyDOM(el)),
rerender: (options) => {
const isElementExist = (container: any, selector: any) => {
const element = find(container, selector);
if (!element) {
throw new Error(`Unable to find element by selector: ${selector}. Container: \n${prettyDOM(container)}`);
}
return element;
};
export const logElement = (element: Node) => console.log(prettyDOM(element as HTMLElement));
const debug = () => {
console.log(prettyDOM(view.dom as HTMLElement));
};