This package has been deprecated

Author message:

roo-ui has been combined into a single package, please install 'roo-ui' instead

@roo-ui/test-utils

0.62.5 • Public • Published

test-utils

Installation

$ yarn add @roo-ui/test-utils

Usage

shallowWithTheme

Shallow render (with Enzyme) a component along with theme context.

import { shallowWithTheme } from '@roo-ui/test-utils';
import { qantas as theme } from '@roo-ui/themes';

import Example from '.';

describe('<Example />', () => {
  it('renders correctly', () => {
    expect(shallowWithTheme(<Example />, theme)).toMatchSnapshot;
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i @roo-ui/test-utils

Weekly Downloads

1

Version

0.62.5

License

MIT

Unpacked Size

7.17 kB

Total Files

17

Last publish

Collaborators

  • hooroo-deploy-user
  • qh-mikeespana