0.2.33 • Published 11 months ago
@pie-lib/test-utils v0.2.33
test-utils
test-utils
is a small collection of tools and helper functions that facilitate testing for components of the PIE framework.
Usage
Install
npm install --save @pie-lib/test-utils
Import
import { shallowChild } from '@pie-lib/test-utils';
Use it for testing HoC wrapped components
const wrapper = shallowChild(ComponentX, defaultProps, 1); // 1 being nest level, for instance Material-UI styles wrapper HoC
const componentWithSpecificProps = wrapper(specificProps);
expect(componentWithSpecificProps.find('div').length).toEqual(1);
0.2.33
11 months ago
0.2.24
1 year ago
0.2.33-next.0
1 year ago
0.2.32
1 year ago
0.2.20
1 year ago
0.2.21-next.0
1 year ago
0.2.19
3 years ago
0.2.17
3 years ago
0.2.16
3 years ago
0.2.14
4 years ago
0.2.14-next.6
4 years ago
0.2.13
4 years ago
0.2.13-next.8
4 years ago
0.2.12
4 years ago
0.2.11
4 years ago
0.2.10
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.9
4 years ago
0.2.8
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
5 years ago
0.2.2-next.291
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.10-next.310
5 years ago
0.1.9
5 years ago
0.1.9-next.68
5 years ago
0.1.9-next.58
5 years ago
0.1.9-next.26
5 years ago
0.1.9-next.12
5 years ago
0.1.8
5 years ago
0.1.5
5 years ago
0.1.4-next.8
5 years ago
0.1.4-next.7
5 years ago
0.1.4-next.6
5 years ago
0.1.4-next.5
5 years ago
0.1.4-next.2
5 years ago
0.1.5-next.0
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.3-next.5
5 years ago
0.1.2
5 years ago
0.1.2-next.126
5 years ago
0.1.2-next.71
5 years ago
0.1.2-next.72
5 years ago
0.1.2-next.78
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
1.0.0
5 years ago
0.0.3
6 years ago
0.0.2
6 years ago