0.62.5 • Published 5 years ago

@roo-ui/test-utils v0.62.5

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

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;
  });
});
0.62.5

5 years ago

0.58.10

5 years ago

0.58.5

5 years ago

0.50.7

6 years ago

0.39.1

6 years ago

0.39.0

6 years ago

0.32.0

6 years ago

0.19.0

6 years ago

0.7.0

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago