jest-preset-angular 8.2.1 → 8.4.0
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.md +344 -128
- package/{LICENSE → LICENSE.md} +0 -0
- package/README.md +40 -458
- package/build/AngularNoNgAttributesSnapshotSerializer.js +18 -42
- package/build/AngularSnapshotSerializer.js +24 -38
- package/build/HTMLCommentSerializer.js +10 -18
- package/build/InlineFilesTransformer.js +21 -85
- package/build/StripStylesTransformer.js +14 -87
- package/build/TransformUtils.js +2 -7
- package/build/reflect-metadata.js +18 -0
- package/build/serializers/html-comment.js +8 -0
- package/build/serializers/index.js +6 -0
- package/build/serializers/ng-snapshot.js +59 -0
- package/build/serializers/no-ng-attributes.js +42 -0
- package/build/setup-jest.js +18 -0
- package/build/utils/ngcc-jest-processor.js +38 -0
- package/build/zone-patch/index.js +29 -84
- package/index.js +8 -1
- package/jest-preset.js +10 -8
- package/ngcc-jest-processor.js +1 -0
- package/package.json +63 -22
- package/setup-jest.js +1 -0
- package/.circleci/config.yml +0 -75
- package/.idea/jest-preset-angular.iml +0 -12
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -293
- package/build/reflectMetadata.js +0 -21
- package/build/setupJest.js +0 -12
- package/greenkeeper.json +0 -10
- package/tsconfig.json +0 -15
package/.idea/workspace.xml
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="BranchesTreeState">
|
|
4
|
-
<expand>
|
|
5
|
-
<path>
|
|
6
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
7
|
-
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
8
|
-
</path>
|
|
9
|
-
<path>
|
|
10
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
11
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
12
|
-
</path>
|
|
13
|
-
<path>
|
|
14
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
15
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
16
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
17
|
-
</path>
|
|
18
|
-
<path>
|
|
19
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
20
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
21
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
22
|
-
<item name="GROUP_NODE:test" type="e8cecc67:BranchNodeDescriptor" />
|
|
23
|
-
</path>
|
|
24
|
-
<path>
|
|
25
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
26
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
27
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
28
|
-
</path>
|
|
29
|
-
<path>
|
|
30
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
31
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
32
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
33
|
-
<item name="GROUP_NODE:dependabot" type="e8cecc67:BranchNodeDescriptor" />
|
|
34
|
-
</path>
|
|
35
|
-
<path>
|
|
36
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
37
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
38
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
39
|
-
<item name="GROUP_NODE:dependabot" type="e8cecc67:BranchNodeDescriptor" />
|
|
40
|
-
<item name="GROUP_NODE:npm_and_yarn" type="e8cecc67:BranchNodeDescriptor" />
|
|
41
|
-
</path>
|
|
42
|
-
<path>
|
|
43
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
44
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
45
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
46
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
47
|
-
</path>
|
|
48
|
-
<path>
|
|
49
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
50
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
51
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
52
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
53
|
-
<item name="GROUP_NODE:@types" type="e8cecc67:BranchNodeDescriptor" />
|
|
54
|
-
</path>
|
|
55
|
-
<path>
|
|
56
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
57
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
58
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
59
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
60
|
-
<item name="GROUP_NODE:default" type="e8cecc67:BranchNodeDescriptor" />
|
|
61
|
-
</path>
|
|
62
|
-
<path>
|
|
63
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
64
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
65
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
66
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
67
|
-
<item name="GROUP_NODE:default" type="e8cecc67:BranchNodeDescriptor" />
|
|
68
|
-
<item name="GROUP_NODE:@angular" type="e8cecc67:BranchNodeDescriptor" />
|
|
69
|
-
</path>
|
|
70
|
-
<path>
|
|
71
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
72
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
73
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
74
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
75
|
-
<item name="GROUP_NODE:default" type="e8cecc67:BranchNodeDescriptor" />
|
|
76
|
-
<item name="GROUP_NODE:@angular-devkit" type="e8cecc67:BranchNodeDescriptor" />
|
|
77
|
-
</path>
|
|
78
|
-
<path>
|
|
79
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
80
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
81
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
82
|
-
<item name="GROUP_NODE:greenkeeper" type="e8cecc67:BranchNodeDescriptor" />
|
|
83
|
-
<item name="GROUP_NODE:default" type="e8cecc67:BranchNodeDescriptor" />
|
|
84
|
-
<item name="GROUP_NODE:@types" type="e8cecc67:BranchNodeDescriptor" />
|
|
85
|
-
</path>
|
|
86
|
-
<path>
|
|
87
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
88
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
89
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
90
|
-
<item name="GROUP_NODE:release" type="e8cecc67:BranchNodeDescriptor" />
|
|
91
|
-
</path>
|
|
92
|
-
<path>
|
|
93
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
94
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
95
|
-
<item name="GROUP_NODE:upstream" type="e8cecc67:BranchNodeDescriptor" />
|
|
96
|
-
<item name="GROUP_NODE:test" type="e8cecc67:BranchNodeDescriptor" />
|
|
97
|
-
</path>
|
|
98
|
-
</expand>
|
|
99
|
-
<select />
|
|
100
|
-
</component>
|
|
101
|
-
<component name="ChangeListManager">
|
|
102
|
-
<list default="true" id="12a060aa-68eb-4003-ba4d-c8bf41ba3770" name="Default Changelist" comment="add github templates for issues and pull requests">
|
|
103
|
-
<change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
|
|
104
|
-
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
105
|
-
</list>
|
|
106
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
107
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
108
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
109
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
110
|
-
</component>
|
|
111
|
-
<component name="Git.Settings">
|
|
112
|
-
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
113
|
-
<map>
|
|
114
|
-
<entry key="$PROJECT_DIR$" value="github-templates" />
|
|
115
|
-
</map>
|
|
116
|
-
</option>
|
|
117
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
118
|
-
</component>
|
|
119
|
-
<component name="ProjectId" id="1bysfLDMpqai24DD0ZIL2cxJORr" />
|
|
120
|
-
<component name="ProjectViewState">
|
|
121
|
-
<option name="autoscrollFromSource" value="true" />
|
|
122
|
-
<option name="autoscrollToSource" value="true" />
|
|
123
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
124
|
-
<option name="showLibraryContents" value="true" />
|
|
125
|
-
</component>
|
|
126
|
-
<component name="PropertiesComponent">
|
|
127
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
128
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
129
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
130
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
131
|
-
<property name="nodejs_package_manager_path" value="yarn" />
|
|
132
|
-
</component>
|
|
133
|
-
<component name="RecentsManager">
|
|
134
|
-
<key name="CopyFile.RECENT_KEYS">
|
|
135
|
-
<recent name="$PROJECT_DIR$" />
|
|
136
|
-
</key>
|
|
137
|
-
</component>
|
|
138
|
-
<component name="SvnConfiguration">
|
|
139
|
-
<configuration />
|
|
140
|
-
</component>
|
|
141
|
-
<component name="TaskManager">
|
|
142
|
-
<task active="true" id="Default" summary="Default task">
|
|
143
|
-
<changelist id="12a060aa-68eb-4003-ba4d-c8bf41ba3770" name="Default Changelist" comment="" />
|
|
144
|
-
<created>1589615770000</created>
|
|
145
|
-
<option name="number" value="Default" />
|
|
146
|
-
<option name="presentableId" value="Default" />
|
|
147
|
-
<updated>1589615770000</updated>
|
|
148
|
-
<workItem from="1589615771733" duration="2293000" />
|
|
149
|
-
<workItem from="1589705413541" duration="1278000" />
|
|
150
|
-
<workItem from="1589706744737" duration="833000" />
|
|
151
|
-
<workItem from="1589733347480" duration="708000" />
|
|
152
|
-
<workItem from="1592572724207" duration="78000" />
|
|
153
|
-
</task>
|
|
154
|
-
<task id="LOCAL-00001" summary="feat: support jest 26">
|
|
155
|
-
<created>1589616003978</created>
|
|
156
|
-
<option name="number" value="00001" />
|
|
157
|
-
<option name="presentableId" value="LOCAL-00001" />
|
|
158
|
-
<option name="project" value="LOCAL" />
|
|
159
|
-
<updated>1589616003978</updated>
|
|
160
|
-
</task>
|
|
161
|
-
<task id="LOCAL-00002" summary="feat: support jest 26">
|
|
162
|
-
<created>1589616180015</created>
|
|
163
|
-
<option name="number" value="00002" />
|
|
164
|
-
<option name="presentableId" value="LOCAL-00002" />
|
|
165
|
-
<option name="project" value="LOCAL" />
|
|
166
|
-
<updated>1589616180015</updated>
|
|
167
|
-
</task>
|
|
168
|
-
<task id="LOCAL-00003" summary="feat: support jest 26">
|
|
169
|
-
<created>1589616575932</created>
|
|
170
|
-
<option name="number" value="00003" />
|
|
171
|
-
<option name="presentableId" value="LOCAL-00003" />
|
|
172
|
-
<option name="project" value="LOCAL" />
|
|
173
|
-
<updated>1589616575932</updated>
|
|
174
|
-
</task>
|
|
175
|
-
<task id="LOCAL-00004" summary="feat: support jest 26">
|
|
176
|
-
<created>1589617132033</created>
|
|
177
|
-
<option name="number" value="00004" />
|
|
178
|
-
<option name="presentableId" value="LOCAL-00004" />
|
|
179
|
-
<option name="project" value="LOCAL" />
|
|
180
|
-
<updated>1589617132033</updated>
|
|
181
|
-
</task>
|
|
182
|
-
<task id="LOCAL-00005" summary="feat: support jest 26">
|
|
183
|
-
<created>1589617196551</created>
|
|
184
|
-
<option name="number" value="00005" />
|
|
185
|
-
<option name="presentableId" value="LOCAL-00005" />
|
|
186
|
-
<option name="project" value="LOCAL" />
|
|
187
|
-
<updated>1589617196551</updated>
|
|
188
|
-
</task>
|
|
189
|
-
<task id="LOCAL-00006" summary="add github templates for issues and pull requests">
|
|
190
|
-
<created>1589617888710</created>
|
|
191
|
-
<option name="number" value="00006" />
|
|
192
|
-
<option name="presentableId" value="LOCAL-00006" />
|
|
193
|
-
<option name="project" value="LOCAL" />
|
|
194
|
-
<updated>1589617888710</updated>
|
|
195
|
-
</task>
|
|
196
|
-
<task id="LOCAL-00007" summary="feat: support jest 26">
|
|
197
|
-
<created>1589705600326</created>
|
|
198
|
-
<option name="number" value="00007" />
|
|
199
|
-
<option name="presentableId" value="LOCAL-00007" />
|
|
200
|
-
<option name="project" value="LOCAL" />
|
|
201
|
-
<updated>1589705600326</updated>
|
|
202
|
-
</task>
|
|
203
|
-
<task id="LOCAL-00008" summary="add github templates for issues and pull requests">
|
|
204
|
-
<created>1589733434673</created>
|
|
205
|
-
<option name="number" value="00008" />
|
|
206
|
-
<option name="presentableId" value="LOCAL-00008" />
|
|
207
|
-
<option name="project" value="LOCAL" />
|
|
208
|
-
<updated>1589733434673</updated>
|
|
209
|
-
</task>
|
|
210
|
-
<task id="LOCAL-00009" summary="add github templates for issues and pull requests">
|
|
211
|
-
<created>1589733454164</created>
|
|
212
|
-
<option name="number" value="00009" />
|
|
213
|
-
<option name="presentableId" value="LOCAL-00009" />
|
|
214
|
-
<option name="project" value="LOCAL" />
|
|
215
|
-
<updated>1589733454164</updated>
|
|
216
|
-
</task>
|
|
217
|
-
<option name="localTasksCounter" value="10" />
|
|
218
|
-
<servers />
|
|
219
|
-
</component>
|
|
220
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
221
|
-
<option name="version" value="2" />
|
|
222
|
-
</component>
|
|
223
|
-
<component name="Vcs.Log.History.Properties">
|
|
224
|
-
<option name="COLUMN_ORDER">
|
|
225
|
-
<list>
|
|
226
|
-
<option value="0" />
|
|
227
|
-
<option value="2" />
|
|
228
|
-
<option value="3" />
|
|
229
|
-
<option value="1" />
|
|
230
|
-
</list>
|
|
231
|
-
</option>
|
|
232
|
-
</component>
|
|
233
|
-
<component name="Vcs.Log.Tabs.Properties">
|
|
234
|
-
<option name="TAB_STATES">
|
|
235
|
-
<map>
|
|
236
|
-
<entry key="MAIN">
|
|
237
|
-
<value>
|
|
238
|
-
<State />
|
|
239
|
-
</value>
|
|
240
|
-
</entry>
|
|
241
|
-
</map>
|
|
242
|
-
</option>
|
|
243
|
-
<option name="oldMeFiltersMigrated" value="true" />
|
|
244
|
-
</component>
|
|
245
|
-
<component name="VcsManagerConfiguration">
|
|
246
|
-
<MESSAGE value="feat: support jest 26" />
|
|
247
|
-
<MESSAGE value="add github templates for issues and pull requests" />
|
|
248
|
-
<option name="LAST_COMMIT_MESSAGE" value="add github templates for issues and pull requests" />
|
|
249
|
-
</component>
|
|
250
|
-
<component name="WindowStateProjectService">
|
|
251
|
-
<state x="100" y="123" width="1480" height="749" key="DiffContextDialog" timestamp="1589705844424">
|
|
252
|
-
<screen x="0" y="23" width="1680" height="949" />
|
|
253
|
-
</state>
|
|
254
|
-
<state x="100" y="123" width="1480" height="749" key="DiffContextDialog/0.23.1680.949@0.23.1680.949" timestamp="1589705844424" />
|
|
255
|
-
<state width="1659" height="248" key="GridCell.Tab.0.bottom" timestamp="1592572785683">
|
|
256
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
257
|
-
</state>
|
|
258
|
-
<state width="1659" height="248" key="GridCell.Tab.0.bottom/0.23.1680.947@0.23.1680.947" timestamp="1592572785683" />
|
|
259
|
-
<state width="1659" height="249" key="GridCell.Tab.0.bottom/0.23.1680.949@0.23.1680.949" timestamp="1589618139292" />
|
|
260
|
-
<state width="1659" height="248" key="GridCell.Tab.0.center" timestamp="1592572785598">
|
|
261
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
262
|
-
</state>
|
|
263
|
-
<state width="1659" height="248" key="GridCell.Tab.0.center/0.23.1680.947@0.23.1680.947" timestamp="1592572785598" />
|
|
264
|
-
<state width="1659" height="249" key="GridCell.Tab.0.center/0.23.1680.949@0.23.1680.949" timestamp="1589618139291" />
|
|
265
|
-
<state width="1659" height="248" key="GridCell.Tab.0.left" timestamp="1592572785598">
|
|
266
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
267
|
-
</state>
|
|
268
|
-
<state width="1659" height="248" key="GridCell.Tab.0.left/0.23.1680.947@0.23.1680.947" timestamp="1592572785598" />
|
|
269
|
-
<state width="1659" height="249" key="GridCell.Tab.0.left/0.23.1680.949@0.23.1680.949" timestamp="1589618139290" />
|
|
270
|
-
<state width="1659" height="248" key="GridCell.Tab.0.right" timestamp="1592572785664">
|
|
271
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
272
|
-
</state>
|
|
273
|
-
<state width="1659" height="248" key="GridCell.Tab.0.right/0.23.1680.947@0.23.1680.947" timestamp="1592572785664" />
|
|
274
|
-
<state width="1659" height="249" key="GridCell.Tab.0.right/0.23.1680.949@0.23.1680.949" timestamp="1589618139291" />
|
|
275
|
-
<state x="628" y="123" key="RollbackChangesDialog" timestamp="1589706982392">
|
|
276
|
-
<screen x="0" y="23" width="1680" height="949" />
|
|
277
|
-
</state>
|
|
278
|
-
<state x="628" y="123" key="RollbackChangesDialog/0.23.1680.949@0.23.1680.949" timestamp="1589706982392" />
|
|
279
|
-
<state x="440" y="219" key="Vcs.Push.Dialog.v2" timestamp="1592572777997">
|
|
280
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
281
|
-
</state>
|
|
282
|
-
<state x="440" y="219" key="Vcs.Push.Dialog.v2/0.23.1680.947@0.23.1680.947" timestamp="1592572777997" />
|
|
283
|
-
<state x="440" y="219" key="Vcs.Push.Dialog.v2/0.23.1680.949@0.23.1680.949" timestamp="1589733457578" />
|
|
284
|
-
<state x="542" y="236" width="596" height="522" key="find.popup" timestamp="1589617910285">
|
|
285
|
-
<screen x="0" y="23" width="1680" height="949" />
|
|
286
|
-
</state>
|
|
287
|
-
<state x="542" y="236" width="596" height="522" key="find.popup/0.23.1680.949@0.23.1680.949" timestamp="1589617910285" />
|
|
288
|
-
<state x="616" y="283" key="git4idea.merge.GitMergeDialog" timestamp="1592572768579">
|
|
289
|
-
<screen x="0" y="23" width="1680" height="947" />
|
|
290
|
-
</state>
|
|
291
|
-
<state x="616" y="283" key="git4idea.merge.GitMergeDialog/0.23.1680.947@0.23.1680.947" timestamp="1592572768579" />
|
|
292
|
-
</component>
|
|
293
|
-
</project>
|
package/build/reflectMetadata.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var METADATA_KEY_PARAMTYPES = "design:paramtypes";
|
|
3
|
-
var CTOR_PARAMETERS_JPA = "ctorParametersJPA";
|
|
4
|
-
// weird workaround to avoid 'ReferenceError: globalThis is not defined' in node version < 11
|
|
5
|
-
global.globalThis = global.globalThis || undefined;
|
|
6
|
-
var _global = globalThis || global; // globalThis available since node v12/TS v3.4
|
|
7
|
-
var reflect = _global["Reflect"]; // reflect type in global has not these methods
|
|
8
|
-
// let's not blindly override, maybe there is already a reflect lib in use
|
|
9
|
-
// but just overriding one of the two functions does not serve any purpose
|
|
10
|
-
if (!reflect.metadata && !reflect.getOwnMetadata) {
|
|
11
|
-
reflect.metadata = function (metadataKey, metadataValue) { return function (target, key) {
|
|
12
|
-
if (metadataKey === METADATA_KEY_PARAMTYPES && key === undefined) { // key undefined is ctor
|
|
13
|
-
target[CTOR_PARAMETERS_JPA] = metadataValue;
|
|
14
|
-
}
|
|
15
|
-
}; };
|
|
16
|
-
reflect.getOwnMetadata = function (metadata, target, key) {
|
|
17
|
-
if (metadata === METADATA_KEY_PARAMTYPES && key === undefined) { // key undefined is ctor
|
|
18
|
-
return target[CTOR_PARAMETERS_JPA];
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
package/build/setupJest.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
require('./reflectMetadata');
|
|
3
|
-
require('zone.js/dist/zone.js');
|
|
4
|
-
require('zone.js/dist/proxy.js');
|
|
5
|
-
require('zone.js/dist/sync-test');
|
|
6
|
-
require('zone.js/dist/async-test');
|
|
7
|
-
require('zone.js/dist/fake-async-test');
|
|
8
|
-
require('./zone-patch');
|
|
9
|
-
var getTestBed = require('@angular/core/testing').getTestBed;
|
|
10
|
-
var BrowserDynamicTestingModule = require('@angular/platform-browser-dynamic/testing').BrowserDynamicTestingModule;
|
|
11
|
-
var platformBrowserDynamicTesting = require('@angular/platform-browser-dynamic/testing').platformBrowserDynamicTesting;
|
|
12
|
-
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
|
package/greenkeeper.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "./build",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"lib": ["esnext"],
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"baseUrl": ".",
|
|
10
|
-
"allowJs": true,
|
|
11
|
-
"types": ["node"]
|
|
12
|
-
},
|
|
13
|
-
"include": ["src"],
|
|
14
|
-
"exclude": ["**/__tests__"]
|
|
15
|
-
}
|