category: packages
utils-test
A UI testing library made by Rock Content
Installation
yarn add @temporg/utils-test
Usage
import { mount, expect, find } from '@temporg/utils-test'
import MyComponent from '../'
it('should render children', async () => {
await mount(<MyComponent>Hello World</MyComponent>)
expect(await find(':contains(Hello World)')).to.exist()
})