@pie-lib/test-utils 0.2.33 → 0.2.34-next.1848
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -137
- package/CHANGELOG.md +191 -9
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +2 -2
- package/src/__tests__/index.test.js +45 -0
- package/.travis.yml +0 -7
- package/README.md +0 -23
package/CHANGELOG.json
CHANGED
|
@@ -1,137 +1 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "fix",
|
|
4
|
-
"scope": null,
|
|
5
|
-
"subject": "rm child prepack in favour of root prepack",
|
|
6
|
-
"merge": null,
|
|
7
|
-
"header": "fix: rm child prepack in favour of root prepack",
|
|
8
|
-
"body": null,
|
|
9
|
-
"footer": null,
|
|
10
|
-
"notes": [],
|
|
11
|
-
"hash": "381d8d6485269b641d8d4655148966d2e70803be",
|
|
12
|
-
"gitTags": "",
|
|
13
|
-
"committerDate": "2019-03-15 09:51:11 +0000",
|
|
14
|
-
"isTagged": true,
|
|
15
|
-
"tag": "@pie-lib/test-utils@0.1.9"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "chore",
|
|
19
|
-
"scope": null,
|
|
20
|
-
"subject": "get packages to call changelog function on prepack",
|
|
21
|
-
"merge": null,
|
|
22
|
-
"header": "chore: get packages to call changelog function on prepack",
|
|
23
|
-
"body": null,
|
|
24
|
-
"footer": null,
|
|
25
|
-
"notes": [],
|
|
26
|
-
"hash": "8828f01f2d16d29404ba837c1de40d09e7230ec5",
|
|
27
|
-
"gitTags": "",
|
|
28
|
-
"committerDate": "2019-03-14 12:40:05 +0000",
|
|
29
|
-
"isTagged": true,
|
|
30
|
-
"tag": "@pie-lib/test-utils@0.1.5"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "chore",
|
|
34
|
-
"scope": null,
|
|
35
|
-
"subject": "call changelog on prepack",
|
|
36
|
-
"merge": null,
|
|
37
|
-
"header": "chore: call changelog on prepack",
|
|
38
|
-
"body": null,
|
|
39
|
-
"footer": null,
|
|
40
|
-
"notes": [],
|
|
41
|
-
"hash": "b672c012de096c55b765a765f758da3fc5df2f90",
|
|
42
|
-
"gitTags": "",
|
|
43
|
-
"committerDate": "2019-03-13 23:00:44 +0000",
|
|
44
|
-
"isTagged": true,
|
|
45
|
-
"tag": "@pie-lib/test-utils@0.1.4"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "chore",
|
|
49
|
-
"scope": null,
|
|
50
|
-
"subject": "generate changelog.json instead of markdown",
|
|
51
|
-
"merge": null,
|
|
52
|
-
"header": "chore: generate changelog.json instead of markdown",
|
|
53
|
-
"body": null,
|
|
54
|
-
"footer": null,
|
|
55
|
-
"notes": [],
|
|
56
|
-
"hash": "eaa5019a11f70c53425d55856bd3b940237f8c7d",
|
|
57
|
-
"gitTags": "",
|
|
58
|
-
"committerDate": "2019-03-13 17:24:09 +0000",
|
|
59
|
-
"isTagged": true,
|
|
60
|
-
"tag": "@pie-lib/test-utils@0.1.2"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "feat",
|
|
64
|
-
"scope": null,
|
|
65
|
-
"subject": "libs version bump",
|
|
66
|
-
"merge": null,
|
|
67
|
-
"header": "feat: libs version bump",
|
|
68
|
-
"body": null,
|
|
69
|
-
"footer": null,
|
|
70
|
-
"notes": [],
|
|
71
|
-
"hash": "de9ac2b9f8dbcbf4cdf86826e91c8fff54812f50",
|
|
72
|
-
"gitTags": "",
|
|
73
|
-
"committerDate": "2019-01-30 22:14:28 +0000",
|
|
74
|
-
"isTagged": true,
|
|
75
|
-
"tag": "@pie-lib/test-utils@0.1.0"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "fix",
|
|
79
|
-
"scope": "dependencies",
|
|
80
|
-
"subject": "make enzyme a peerDependency",
|
|
81
|
-
"merge": null,
|
|
82
|
-
"header": "fix(dependencies): make enzyme a peerDependency",
|
|
83
|
-
"body": null,
|
|
84
|
-
"footer": null,
|
|
85
|
-
"notes": [],
|
|
86
|
-
"hash": "181c641f795fed54c535a69dd35103a994870a4b",
|
|
87
|
-
"gitTags": "",
|
|
88
|
-
"committerDate": "2018-05-08 13:28:45 -0400",
|
|
89
|
-
"isTagged": true,
|
|
90
|
-
"tag": "@pie-lib/test-utils@0.0.3"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"type": "feature",
|
|
94
|
-
"scope": "test-utils",
|
|
95
|
-
"subject": "added test-utils shallowChild",
|
|
96
|
-
"merge": null,
|
|
97
|
-
"header": "feature(test-utils): added test-utils shallowChild",
|
|
98
|
-
"body": null,
|
|
99
|
-
"footer": null,
|
|
100
|
-
"notes": [],
|
|
101
|
-
"hash": "aa5cd22797c26882f9dfc098601f5ef9bce5cbfd",
|
|
102
|
-
"gitTags": "",
|
|
103
|
-
"committerDate": "2018-05-02 18:36:56 +0300",
|
|
104
|
-
"isTagged": true,
|
|
105
|
-
"tag": "@pie-lib/test-utils@0.0.2"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "feat",
|
|
109
|
-
"scope": null,
|
|
110
|
-
"subject": "version bumps",
|
|
111
|
-
"merge": null,
|
|
112
|
-
"header": "feat: version bumps",
|
|
113
|
-
"body": null,
|
|
114
|
-
"footer": null,
|
|
115
|
-
"notes": [],
|
|
116
|
-
"hash": "23eb54f95e4b6480e2f8c5b336627a7f3bc2f428",
|
|
117
|
-
"gitTags": "",
|
|
118
|
-
"committerDate": "2019-06-10 15:24:32 +0100",
|
|
119
|
-
"isTagged": true,
|
|
120
|
-
"tag": "@pie-lib/test-utils@0.2.0"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "fix",
|
|
124
|
-
"scope": null,
|
|
125
|
-
"subject": "add module prop to package.json",
|
|
126
|
-
"merge": null,
|
|
127
|
-
"header": "fix: add module prop to package.json",
|
|
128
|
-
"body": null,
|
|
129
|
-
"footer": null,
|
|
130
|
-
"notes": [],
|
|
131
|
-
"hash": "e0cc5001b9edd219f54356b621db357260f19830",
|
|
132
|
-
"gitTags": "",
|
|
133
|
-
"committerDate": "2020-03-30 13:03:48 +0100",
|
|
134
|
-
"isTagged": true,
|
|
135
|
-
"tag": "@pie-lib/test-utils@0.2.3"
|
|
136
|
-
}
|
|
137
|
-
]
|
|
1
|
+
[]
|
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [0.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.16.0...@pie-lib/test-utils@0.17.0) (2025-09-18)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# [0.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.15.0...@pie-lib/test-utils@0.16.0) (2025-09-18)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
17
17
|
|
|
@@ -19,7 +19,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# [0.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.15.0) (2025-09-18)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [0.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.13.0...@pie-lib/test-utils@0.14.0) (2025-09-17)
|
|
23
39
|
|
|
24
40
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
25
41
|
|
|
@@ -27,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
43
|
|
|
28
44
|
|
|
29
45
|
|
|
30
|
-
|
|
46
|
+
# [0.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.12.0...@pie-lib/test-utils@0.13.0) (2025-09-17)
|
|
31
47
|
|
|
32
48
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
33
49
|
|
|
@@ -35,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
51
|
|
|
36
52
|
|
|
37
53
|
|
|
38
|
-
|
|
54
|
+
# [0.12.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.11.1...@pie-lib/test-utils@0.12.0) (2025-09-17)
|
|
39
55
|
|
|
40
56
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
41
57
|
|
|
@@ -43,37 +59,203 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
59
|
|
|
44
60
|
|
|
45
61
|
|
|
46
|
-
## [0.
|
|
62
|
+
## [0.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.11.1) (2025-08-11)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Features
|
|
71
|
+
|
|
72
|
+
* split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# [0.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.11.0) (2025-08-07)
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
|
|
83
|
+
|
|
84
|
+
# [0.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.10.0) (2025-07-31)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
87
|
+
|
|
88
|
+
# [0.9.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.9.0) (2025-07-31)
|
|
47
89
|
|
|
48
90
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
49
91
|
|
|
92
|
+
# [0.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.8.0) (2025-07-31)
|
|
50
93
|
|
|
94
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
51
95
|
|
|
96
|
+
# [0.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.7.0) (2025-07-31)
|
|
52
97
|
|
|
98
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
53
99
|
|
|
54
|
-
|
|
100
|
+
# [0.6.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.6.0) (2025-07-31)
|
|
55
101
|
|
|
56
102
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
57
103
|
|
|
104
|
+
# [0.5.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.5.0) (2025-07-31)
|
|
58
105
|
|
|
106
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
59
107
|
|
|
108
|
+
# [0.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.7.0) (2025-07-31)
|
|
60
109
|
|
|
110
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
61
111
|
|
|
62
|
-
|
|
112
|
+
# [0.6.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.6.0) (2025-07-31)
|
|
63
113
|
|
|
64
114
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
65
115
|
|
|
116
|
+
# [0.5.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.5.0) (2025-07-31)
|
|
66
117
|
|
|
118
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
67
119
|
|
|
120
|
+
# [0.6.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.6.0) (2025-07-31)
|
|
68
121
|
|
|
122
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
69
123
|
|
|
70
|
-
|
|
124
|
+
# [0.5.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.5.0) (2025-07-31)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
127
|
+
|
|
128
|
+
# [0.4.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.4.0) (2025-07-31)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
131
|
+
|
|
132
|
+
# [0.4.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.4.0) (2025-07-31)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
135
|
+
|
|
136
|
+
# [0.5.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.5.0) (2025-07-31)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
139
|
+
|
|
140
|
+
# [0.4.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.4.0) (2025-07-31)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
143
|
+
|
|
144
|
+
# [0.3.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.8) (2025-07-25)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
147
|
+
|
|
148
|
+
# [0.3.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.7) (2025-07-25)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
151
|
+
|
|
152
|
+
# [0.3.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.7) (2025-07-25)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
155
|
+
|
|
156
|
+
# [0.3.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.6) (2025-07-25)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
159
|
+
|
|
160
|
+
# [0.3.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.6) (2025-07-25)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
163
|
+
|
|
164
|
+
# [0.3.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.5) (2025-07-25)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
167
|
+
|
|
168
|
+
# [0.3.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.5) (2025-07-25)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
171
|
+
|
|
172
|
+
# [0.3.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.4) (2025-07-25)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
175
|
+
|
|
176
|
+
# [0.3.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.3) (2025-07-25)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
179
|
+
|
|
180
|
+
# [0.3.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.4) (2025-07-23)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
183
|
+
|
|
184
|
+
# [0.3.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.3) (2025-07-23)
|
|
185
|
+
|
|
186
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
187
|
+
|
|
188
|
+
# [0.3.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.3) (2025-07-20)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
191
|
+
|
|
192
|
+
# [0.3.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.2) (2025-07-20)
|
|
193
|
+
|
|
194
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
195
|
+
|
|
196
|
+
# [0.3.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.1) (2025-07-20)
|
|
197
|
+
|
|
198
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
199
|
+
|
|
200
|
+
# [0.3.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.2) (2025-07-20)
|
|
201
|
+
|
|
202
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
203
|
+
|
|
204
|
+
# [0.3.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.1) (2025-07-20)
|
|
205
|
+
|
|
206
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
207
|
+
|
|
208
|
+
# [0.3.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.1) (2025-07-20)
|
|
209
|
+
|
|
210
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
211
|
+
|
|
212
|
+
# [0.3.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.0) (2025-07-20)
|
|
71
213
|
|
|
72
214
|
**Note:** Version bump only for package @pie-lib/test-utils
|
|
73
215
|
|
|
216
|
+
# [0.4.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.4.0-beta.0) (2025-07-15)
|
|
74
217
|
|
|
218
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
219
|
+
|
|
220
|
+
# [0.3.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.33...@pie-lib/test-utils@0.3.0-beta.0) (2025-07-15)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
223
|
+
|
|
224
|
+
## [0.2.33](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.32...@pie-lib/test-utils@0.2.33) (2023-06-24)
|
|
225
|
+
|
|
226
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
227
|
+
|
|
228
|
+
## [0.2.32](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.30...@pie-lib/test-utils@0.2.32) (2023-01-31)
|
|
229
|
+
|
|
230
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
231
|
+
|
|
232
|
+
## [0.2.30](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.29...@pie-lib/test-utils@0.2.30) (2023-01-31)
|
|
233
|
+
|
|
234
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
235
|
+
|
|
236
|
+
## [0.2.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.28...@pie-lib/test-utils@0.2.29) (2023-01-31)
|
|
237
|
+
|
|
238
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
239
|
+
|
|
240
|
+
## [0.2.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.27...@pie-lib/test-utils@0.2.28) (2023-01-31)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
75
243
|
|
|
244
|
+
## [0.2.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.24...@pie-lib/test-utils@0.2.27) (2023-01-31)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
247
|
+
|
|
248
|
+
## [0.2.24](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.22...@pie-lib/test-utils@0.2.24) (2023-01-31)
|
|
76
249
|
|
|
250
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
251
|
+
|
|
252
|
+
## [0.2.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.20...@pie-lib/test-utils@0.2.22) (2023-01-31)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
255
|
+
|
|
256
|
+
## [0.2.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.19...@pie-lib/test-utils@0.2.20) (2022-11-23)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @pie-lib/test-utils
|
|
77
259
|
|
|
78
260
|
## [0.2.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/test-utils@0.2.17...@pie-lib/test-utils@0.2.19) (2021-06-25)
|
|
79
261
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/test-utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34-next.1848+4ac095ca",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"enzyme": "^3.8.0",
|
|
14
14
|
"react": "^16.8.1"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "4ac095ca931e5fe8f131f28f41dd61093bd55d98",
|
|
17
17
|
"scripts": {}
|
|
18
18
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { shallowChild } from '../index';
|
|
3
|
+
import Enzyme from 'enzyme';
|
|
4
|
+
import Adapter from 'enzyme-adapter-react-16';
|
|
5
|
+
|
|
6
|
+
Enzyme.configure({ adapter: new Adapter() });
|
|
7
|
+
|
|
8
|
+
describe('test-utils', () => {
|
|
9
|
+
describe('shallowChild', () => {
|
|
10
|
+
function simpleHoC(WrappedComponent) {
|
|
11
|
+
return class extends React.Component {
|
|
12
|
+
render() {
|
|
13
|
+
return (
|
|
14
|
+
<div>
|
|
15
|
+
<WrappedComponent oneMoreProp="hello" {...this.props} />
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class SimpleComponent extends React.Component {
|
|
23
|
+
render() {
|
|
24
|
+
return <span>My simple component will get wrapped</span>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
it('moves past HoC and returns shallow rendered component using enzyme', () => {
|
|
29
|
+
const wrapper = shallowChild(simpleHoC(SimpleComponent), null, 1);
|
|
30
|
+
const shallowComponent = wrapper();
|
|
31
|
+
|
|
32
|
+
expect(shallowComponent.find(SimpleComponent).length).toEqual(1);
|
|
33
|
+
expect(shallowComponent.props().children.props.oneMoreProp).toEqual('hello');
|
|
34
|
+
expect(shallowComponent.html().includes('span')).toEqual(true);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('overwrites specific props when passed into the closure', () => {
|
|
38
|
+
const wrapper = shallowChild(simpleHoC(SimpleComponent), null, 1);
|
|
39
|
+
const shallowComponent = wrapper({ oneMoreProp: 'helloToo' });
|
|
40
|
+
|
|
41
|
+
expect(shallowComponent.find(SimpleComponent).length).toEqual(1);
|
|
42
|
+
expect(shallowComponent.props().children.props.oneMoreProp).toEqual('helloToo');
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
});
|
package/.travis.yml
DELETED
package/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# test-utils
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`test-utils` is a small collection of tools and helper functions that facilitate testing for components of the PIE framework.
|
|
5
|
-
|
|
6
|
-
## Usage
|
|
7
|
-
|
|
8
|
-
### Install
|
|
9
|
-
|
|
10
|
-
npm install --save @pie-lib/test-utils
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Import
|
|
14
|
-
|
|
15
|
-
import { shallowChild } from '@pie-lib/test-utils';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Use it for testing HoC wrapped components
|
|
19
|
-
|
|
20
|
-
const wrapper = shallowChild(ComponentX, defaultProps, 1); // 1 being nest level, for instance Material-UI styles wrapper HoC
|
|
21
|
-
const componentWithSpecificProps = wrapper(specificProps);
|
|
22
|
-
|
|
23
|
-
expect(componentWithSpecificProps.find('div').length).toEqual(1);
|