mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
2abbff9676
* Bump eslint-plugin-testing-library from 5.5.1 to 5.6.4 Bumps [eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library) from 5.5.1 to 5.6.4. - [Release notes](https://github.com/testing-library/eslint-plugin-testing-library/releases) - [Changelog](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/.releaserc.json) - [Commits](https://github.com/testing-library/eslint-plugin-testing-library/compare/v5.5.1...v5.6.4) --- updated-dependencies: - dependency-name: eslint-plugin-testing-library dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * dependency fixes * typing error fixes * closes #1694 * upgrade/downgrade all the things * package updates * remove storyshot test runs, replace with basic render tests Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
import { render } from '@testing-library/react'
|
|
import { ReactElement } from 'react'
|
|
|
|
const testRender = (component: ReactElement): void => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(component)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
}
|
|
|
|
export default testRender
|