How to use the @testing-library/dom.prettyDOM function in @testing-library/dom

To help you get started, we’ve selected a few @testing-library/dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github testing-library / react-testing-library / src / pure.js View on Github external
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),
github testing-library / react-testing-library / src / pure.js View on Github external
          el.forEach(e => console.log(prettyDOM(e)))
        : // eslint-disable-next-line no-console,
github ariesjia / riot-testing-library / src / index.ts View on Github external
    debug: (el = container) => console.log(prettyDOM(el)),
    container,
github testing-library / angular-testing-library / projects / testing-library / src / lib / testing-library.ts View on Github external
    debug: (element = fixture.nativeElement) => console.log(prettyDOM(element)),
    type: createType(eventsWithDetectChanges),
github testing-library / preact-testing-library / src / pure.js View on Github external
    debug: (el = baseElement) => console.log(dtl.prettyDOM(el)),
    unmount: () => preactRender(null, container),
github testing-library / svelte-testing-library / src / pure.js View on Github external
    debug: (el = container) => console.log(prettyDOM(el)),
    rerender: (options) => {
github sysgears / apollo-universal-starter-kit / modules / testing / client-react / testUtils.ts View on Github external
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;
};
github ifiokjr / remirror / support / fixtures / utils.ts View on Github external
export const logElement = (element: Node) => console.log(prettyDOM(element as HTMLElement));
github ifiokjr / remirror / packages / jest-prosemirror / src / jest-prosemirror-editor.ts View on Github external
const debug = () => {
    console.log(prettyDOM(view.dom as HTMLElement));
  };