Sha256: ebb105971caae63e9de5e367179e83d86f4a1851d1fbb691942629748fdfa058

Contents?: true

Size: 574 Bytes

Versions: 19

Compression:

Stored size: 574 Bytes

Contents

/* This file provides the base for tests */

import React from 'react'
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'

/*
  We can complicate this wrapper as needed.
  https://testing-library.com/docs/react-testing-library/setup
*/
// eslint-disable-next-line react/prop-types
const TestApp = ({ children }) => {
  return (
    <>
      { children }
    </>
  )
}

const customRender = (ui, options) =>
  render(ui, { wrapper: TestApp, ...options })

export * from '@testing-library/react'
export { customRender as render }

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.16.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.15.1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.15.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.14.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.13.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.12.1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.12.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.11.1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.11.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.10.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.9.0 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.8.4 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.8.3 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.8.2 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.8.1 app/pb_kits/playbook/utilities/test-utils.js
playbook_ui-7.8.0 app/pb_kits/playbook/utilities/test-utils.js