0.1.1 • Published 5 years ago

@rock-kit/ui-test-utils v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

category: packages

ui-test-utils

npm  build-status  MIT License  Code of Conduct

A UI testing library made by Rock Content.

Installation

yarn add @rock-kit/ui-test-utils

Usage

import { mount, expect, find } from '@rock-kit/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()
})