0.62.5 • Published 6 years ago

@roo-ui/test-utils v0.62.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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

6 years ago

0.58.10

6 years ago

0.58.5

6 years ago

0.50.7

7 years ago

0.39.1

7 years ago

0.39.0

7 years ago

0.32.0

7 years ago

0.19.0

7 years ago

0.7.0

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago