0.2.33 • Published 2 years 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
2 years ago
0.2.24
2 years ago
0.2.33-next.0
2 years ago
0.2.32
2 years ago
0.2.20
3 years ago
0.2.21-next.0
3 years ago
0.2.19
4 years ago
0.2.17
4 years ago
0.2.16
4 years ago
0.2.14
5 years ago
0.2.14-next.6
5 years ago
0.2.13
5 years ago
0.2.13-next.8
5 years ago
0.2.12
5 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
6 years ago
0.2.2-next.291
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.10-next.310
6 years ago
0.1.9
6 years ago
0.1.9-next.68
6 years ago
0.1.9-next.58
6 years ago
0.1.9-next.26
6 years ago
0.1.9-next.12
6 years ago
0.1.8
6 years ago
0.1.5
6 years ago
0.1.4-next.8
6 years ago
0.1.4-next.7
6 years ago
0.1.4-next.6
6 years ago
0.1.4-next.5
6 years ago
0.1.4-next.2
6 years ago
0.1.5-next.0
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.3-next.5
6 years ago
0.1.2
6 years ago
0.1.2-next.126
6 years ago
0.1.2-next.71
6 years ago
0.1.2-next.72
6 years ago
0.1.2-next.78
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
1.0.0
6 years ago
0.0.3
7 years ago
0.0.2
7 years ago