0.8.0 • Published 4 years ago
@temporg/ui-test-utils v0.8.0
category: packages
private: true
ui-test-utils
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()
})