0.8.0 • Published 4 years ago

@temporg/ui-test-utils v0.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

category: packages

private: true

ui-test-utils

npm  build-status  MIT License  Code of Conduct

A UI testing library made by Rock Content.

Installation

yarn add @temporg/ui-test-utils

Usage

import { mount, expect, find } from '@temporg/ui-test-utils'

import MyComponent from '../'

it('should render children', async () => {
  await mount(<MyComponent>Hello World</MyComponent>)
  expect(await find(':contains(Hello World)')).to.exist()
})