@teambit/jest 1.0.332 → 1.0.333
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_defender_jest-preview.js +1 -1
- package/artifacts/schema.json +110 -110
- package/dist/jest.tester.js +1 -12
- package/dist/jest.tester.js.map +1 -1
- package/dist/{preview-1720690103747.js → preview-1720754434554.js} +2 -2
- package/package.json +7 -8
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.defender/jest@1.0.
|
3
|
+
<testsuite name="teambit.defender/jest@1.0.333" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/jest-preview"]=t():e["teambit.defender/jest-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/jest-preview"]=t():e["teambit.defender/jest-preview"]=t()}(self,(()=>(()=>{"use strict";var e={9238:(e,t,o)=>{var r={id:"teambit.defender/jest@1.0.333",homepage:"https://bit.cloud/teambit/defender/jest",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-jest.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>l,compositions_metadata:()=>v,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>u});var i=o(9238);o(41594);const a=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var d=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(null,arguments)}var c={},f="wrapper";function u(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,d);return(0,a.mdx)(f,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(s.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}u.isMDXComponent=!0;const l=[i],m=[n],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
"__schema": "ClassSchema",
|
26
26
|
"location": {
|
27
27
|
"filePath": "jest.tester.ts",
|
28
|
-
"line":
|
28
|
+
"line": 38,
|
29
29
|
"character": 1
|
30
30
|
},
|
31
31
|
"signature": "class JestTester",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"__schema": "ConstructorSchema",
|
36
36
|
"location": {
|
37
37
|
"filePath": "jest.tester.ts",
|
38
|
-
"line":
|
38
|
+
"line": 41,
|
39
39
|
"character": 3
|
40
40
|
},
|
41
41
|
"signature": "constructor JestTester(id: string, jestConfig: any, jestModulePath: string, jestWorker: HarmonyWorker<JestWorker>, logger: Logger, opts?: JestTesterOptions): JestTester",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"__schema": "ParameterSchema",
|
46
46
|
"location": {
|
47
47
|
"filePath": "jest.tester.ts",
|
48
|
-
"line":
|
48
|
+
"line": 42,
|
49
49
|
"character": 5
|
50
50
|
},
|
51
51
|
"name": "id",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"__schema": "KeywordTypeSchema",
|
54
54
|
"location": {
|
55
55
|
"filePath": "jest.tester.ts",
|
56
|
-
"line":
|
56
|
+
"line": 42,
|
57
57
|
"character": 18
|
58
58
|
},
|
59
59
|
"name": "string"
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"__schema": "ParameterSchema",
|
66
66
|
"location": {
|
67
67
|
"filePath": "jest.tester.ts",
|
68
|
-
"line":
|
68
|
+
"line": 43,
|
69
69
|
"character": 5
|
70
70
|
},
|
71
71
|
"name": "jestConfig",
|
@@ -73,7 +73,7 @@
|
|
73
73
|
"__schema": "KeywordTypeSchema",
|
74
74
|
"location": {
|
75
75
|
"filePath": "jest.tester.ts",
|
76
|
-
"line":
|
76
|
+
"line": 43,
|
77
77
|
"character": 26
|
78
78
|
},
|
79
79
|
"name": "any"
|
@@ -85,7 +85,7 @@
|
|
85
85
|
"__schema": "ParameterSchema",
|
86
86
|
"location": {
|
87
87
|
"filePath": "jest.tester.ts",
|
88
|
-
"line":
|
88
|
+
"line": 44,
|
89
89
|
"character": 5
|
90
90
|
},
|
91
91
|
"name": "jestModulePath",
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"__schema": "KeywordTypeSchema",
|
94
94
|
"location": {
|
95
95
|
"filePath": "jest.tester.ts",
|
96
|
-
"line":
|
96
|
+
"line": 44,
|
97
97
|
"character": 29
|
98
98
|
},
|
99
99
|
"name": "string"
|
@@ -105,7 +105,7 @@
|
|
105
105
|
"__schema": "ParameterSchema",
|
106
106
|
"location": {
|
107
107
|
"filePath": "jest.tester.ts",
|
108
|
-
"line":
|
108
|
+
"line": 45,
|
109
109
|
"character": 5
|
110
110
|
},
|
111
111
|
"name": "jestWorker",
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"__schema": "TypeRefSchema",
|
114
114
|
"location": {
|
115
115
|
"filePath": "jest.tester.ts",
|
116
|
-
"line":
|
116
|
+
"line": 45,
|
117
117
|
"character": 25
|
118
118
|
},
|
119
119
|
"name": "HarmonyWorker",
|
@@ -122,7 +122,7 @@
|
|
122
122
|
"__schema": "TypeRefSchema",
|
123
123
|
"location": {
|
124
124
|
"filePath": "jest.tester.ts",
|
125
|
-
"line":
|
125
|
+
"line": 45,
|
126
126
|
"character": 39
|
127
127
|
},
|
128
128
|
"name": "JestWorker"
|
@@ -136,7 +136,7 @@
|
|
136
136
|
"__schema": "ParameterSchema",
|
137
137
|
"location": {
|
138
138
|
"filePath": "jest.tester.ts",
|
139
|
-
"line":
|
139
|
+
"line": 46,
|
140
140
|
"character": 5
|
141
141
|
},
|
142
142
|
"name": "logger",
|
@@ -144,7 +144,7 @@
|
|
144
144
|
"__schema": "TypeRefSchema",
|
145
145
|
"location": {
|
146
146
|
"filePath": "jest.tester.ts",
|
147
|
-
"line":
|
147
|
+
"line": 46,
|
148
148
|
"character": 21
|
149
149
|
},
|
150
150
|
"name": "Logger"
|
@@ -156,7 +156,7 @@
|
|
156
156
|
"__schema": "ParameterSchema",
|
157
157
|
"location": {
|
158
158
|
"filePath": "jest.tester.ts",
|
159
|
-
"line":
|
159
|
+
"line": 47,
|
160
160
|
"character": 5
|
161
161
|
},
|
162
162
|
"name": "opts",
|
@@ -164,7 +164,7 @@
|
|
164
164
|
"__schema": "TypeRefSchema",
|
165
165
|
"location": {
|
166
166
|
"filePath": "jest.tester.ts",
|
167
|
-
"line":
|
167
|
+
"line": 47,
|
168
168
|
"character": 19
|
169
169
|
},
|
170
170
|
"name": "JestTesterOptions"
|
@@ -178,7 +178,7 @@
|
|
178
178
|
"__schema": "ThisTypeSchema",
|
179
179
|
"location": {
|
180
180
|
"filePath": "jest.tester.ts",
|
181
|
-
"line":
|
181
|
+
"line": 38,
|
182
182
|
"character": 1
|
183
183
|
},
|
184
184
|
"name": "JestTester"
|
@@ -189,7 +189,7 @@
|
|
189
189
|
"__schema": "VariableLikeSchema",
|
190
190
|
"location": {
|
191
191
|
"filePath": "jest.tester.ts",
|
192
|
-
"line":
|
192
|
+
"line": 53,
|
193
193
|
"character": 3
|
194
194
|
},
|
195
195
|
"signature": "(property) JestTester.configPath: any",
|
@@ -198,7 +198,7 @@
|
|
198
198
|
"__schema": "InferenceTypeSchema",
|
199
199
|
"location": {
|
200
200
|
"filePath": "jest.tester.ts",
|
201
|
-
"line":
|
201
|
+
"line": 53,
|
202
202
|
"character": 3
|
203
203
|
},
|
204
204
|
"type": "any"
|
@@ -210,7 +210,7 @@
|
|
210
210
|
"__schema": "VariableLikeSchema",
|
211
211
|
"location": {
|
212
212
|
"filePath": "jest.tester.ts",
|
213
|
-
"line":
|
213
|
+
"line": 55,
|
214
214
|
"character": 3
|
215
215
|
},
|
216
216
|
"signature": "(property) JestTester.displayName: string",
|
@@ -219,7 +219,7 @@
|
|
219
219
|
"__schema": "InferenceTypeSchema",
|
220
220
|
"location": {
|
221
221
|
"filePath": "jest.tester.ts",
|
222
|
-
"line":
|
222
|
+
"line": 55,
|
223
223
|
"character": 3
|
224
224
|
},
|
225
225
|
"type": "string"
|
@@ -231,7 +231,7 @@
|
|
231
231
|
"__schema": "VariableLikeSchema",
|
232
232
|
"location": {
|
233
233
|
"filePath": "jest.tester.ts",
|
234
|
-
"line":
|
234
|
+
"line": 57,
|
235
235
|
"character": 3
|
236
236
|
},
|
237
237
|
"signature": "(property) JestTester._callback: CallbackFn | undefined",
|
@@ -240,7 +240,7 @@
|
|
240
240
|
"__schema": "TypeUnionSchema",
|
241
241
|
"location": {
|
242
242
|
"filePath": "jest.tester.ts",
|
243
|
-
"line":
|
243
|
+
"line": 57,
|
244
244
|
"character": 14
|
245
245
|
},
|
246
246
|
"types": [
|
@@ -248,7 +248,7 @@
|
|
248
248
|
"__schema": "TypeRefSchema",
|
249
249
|
"location": {
|
250
250
|
"filePath": "jest.tester.ts",
|
251
|
-
"line":
|
251
|
+
"line": 57,
|
252
252
|
"character": 14
|
253
253
|
},
|
254
254
|
"name": "CallbackFn"
|
@@ -257,7 +257,7 @@
|
|
257
257
|
"__schema": "KeywordTypeSchema",
|
258
258
|
"location": {
|
259
259
|
"filePath": "jest.tester.ts",
|
260
|
-
"line":
|
260
|
+
"line": 57,
|
261
261
|
"character": 27
|
262
262
|
},
|
263
263
|
"name": "undefined"
|
@@ -270,7 +270,7 @@
|
|
270
270
|
"__schema": "FunctionLikeSchema",
|
271
271
|
"location": {
|
272
272
|
"filePath": "jest.tester.ts",
|
273
|
-
"line":
|
273
|
+
"line": 59,
|
274
274
|
"character": 3
|
275
275
|
},
|
276
276
|
"signature": "(method) JestTester.displayConfig(): string",
|
@@ -280,7 +280,7 @@
|
|
280
280
|
"__schema": "InferenceTypeSchema",
|
281
281
|
"location": {
|
282
282
|
"filePath": "jest.tester.ts",
|
283
|
-
"line":
|
283
|
+
"line": 59,
|
284
284
|
"character": 3
|
285
285
|
},
|
286
286
|
"type": "string"
|
@@ -291,7 +291,7 @@
|
|
291
291
|
"__schema": "FunctionLikeSchema",
|
292
292
|
"location": {
|
293
293
|
"filePath": "jest.tester.ts",
|
294
|
-
"line":
|
294
|
+
"line": 63,
|
295
295
|
"character": 3
|
296
296
|
},
|
297
297
|
"signature": "(method) JestTester.version(): any",
|
@@ -301,7 +301,7 @@
|
|
301
301
|
"__schema": "InferenceTypeSchema",
|
302
302
|
"location": {
|
303
303
|
"filePath": "jest.tester.ts",
|
304
|
-
"line":
|
304
|
+
"line": 63,
|
305
305
|
"character": 3
|
306
306
|
},
|
307
307
|
"type": "any"
|
@@ -312,7 +312,7 @@
|
|
312
312
|
"__schema": "FunctionLikeSchema",
|
313
313
|
"location": {
|
314
314
|
"filePath": "jest.tester.ts",
|
315
|
-
"line":
|
315
|
+
"line": 152,
|
316
316
|
"character": 3
|
317
317
|
},
|
318
318
|
"signature": "(method) JestTester.onTestRunComplete(callback: CallbackFn): Promise<void>",
|
@@ -322,7 +322,7 @@
|
|
322
322
|
"__schema": "ParameterSchema",
|
323
323
|
"location": {
|
324
324
|
"filePath": "jest.tester.ts",
|
325
|
-
"line":
|
325
|
+
"line": 152,
|
326
326
|
"character": 27
|
327
327
|
},
|
328
328
|
"name": "callback",
|
@@ -330,7 +330,7 @@
|
|
330
330
|
"__schema": "TypeRefSchema",
|
331
331
|
"location": {
|
332
332
|
"filePath": "jest.tester.ts",
|
333
|
-
"line":
|
333
|
+
"line": 152,
|
334
334
|
"character": 37
|
335
335
|
},
|
336
336
|
"name": "CallbackFn"
|
@@ -343,7 +343,7 @@
|
|
343
343
|
"__schema": "InferenceTypeSchema",
|
344
344
|
"location": {
|
345
345
|
"filePath": "jest.tester.ts",
|
346
|
-
"line":
|
346
|
+
"line": 152,
|
347
347
|
"character": 3
|
348
348
|
},
|
349
349
|
"type": "Promise<void>"
|
@@ -356,7 +356,7 @@
|
|
356
356
|
"__schema": "FunctionLikeSchema",
|
357
357
|
"location": {
|
358
358
|
"filePath": "jest.tester.ts",
|
359
|
-
"line":
|
359
|
+
"line": 156,
|
360
360
|
"character": 3
|
361
361
|
},
|
362
362
|
"signature": "(method) JestTester.test(context: TesterContext): Promise<Tests>",
|
@@ -366,7 +366,7 @@
|
|
366
366
|
"__schema": "ParameterSchema",
|
367
367
|
"location": {
|
368
368
|
"filePath": "jest.tester.ts",
|
369
|
-
"line":
|
369
|
+
"line": 156,
|
370
370
|
"character": 14
|
371
371
|
},
|
372
372
|
"name": "context",
|
@@ -374,7 +374,7 @@
|
|
374
374
|
"__schema": "TypeRefSchema",
|
375
375
|
"location": {
|
376
376
|
"filePath": "jest.tester.ts",
|
377
|
-
"line":
|
377
|
+
"line": 156,
|
378
378
|
"character": 23
|
379
379
|
},
|
380
380
|
"name": "TesterContext"
|
@@ -387,7 +387,7 @@
|
|
387
387
|
"__schema": "TypeRefSchema",
|
388
388
|
"location": {
|
389
389
|
"filePath": "jest.tester.ts",
|
390
|
-
"line":
|
390
|
+
"line": 156,
|
391
391
|
"character": 39
|
392
392
|
},
|
393
393
|
"name": "Promise",
|
@@ -396,7 +396,7 @@
|
|
396
396
|
"__schema": "TypeRefSchema",
|
397
397
|
"location": {
|
398
398
|
"filePath": "jest.tester.ts",
|
399
|
-
"line":
|
399
|
+
"line": 156,
|
400
400
|
"character": 47
|
401
401
|
},
|
402
402
|
"name": "Tests"
|
@@ -411,7 +411,7 @@
|
|
411
411
|
"__schema": "FunctionLikeSchema",
|
412
412
|
"location": {
|
413
413
|
"filePath": "jest.tester.ts",
|
414
|
-
"line":
|
414
|
+
"line": 224,
|
415
415
|
"character": 3
|
416
416
|
},
|
417
417
|
"signature": "(method) JestTester.watch(context: TesterContext): Promise<Tests>",
|
@@ -421,7 +421,7 @@
|
|
421
421
|
"__schema": "ParameterSchema",
|
422
422
|
"location": {
|
423
423
|
"filePath": "jest.tester.ts",
|
424
|
-
"line":
|
424
|
+
"line": 224,
|
425
425
|
"character": 15
|
426
426
|
},
|
427
427
|
"name": "context",
|
@@ -429,7 +429,7 @@
|
|
429
429
|
"__schema": "TypeRefSchema",
|
430
430
|
"location": {
|
431
431
|
"filePath": "jest.tester.ts",
|
432
|
-
"line":
|
432
|
+
"line": 224,
|
433
433
|
"character": 24
|
434
434
|
},
|
435
435
|
"name": "TesterContext"
|
@@ -442,7 +442,7 @@
|
|
442
442
|
"__schema": "TypeRefSchema",
|
443
443
|
"location": {
|
444
444
|
"filePath": "jest.tester.ts",
|
445
|
-
"line":
|
445
|
+
"line": 224,
|
446
446
|
"character": 40
|
447
447
|
},
|
448
448
|
"name": "Promise",
|
@@ -451,7 +451,7 @@
|
|
451
451
|
"__schema": "TypeRefSchema",
|
452
452
|
"location": {
|
453
453
|
"filePath": "jest.tester.ts",
|
454
|
-
"line":
|
454
|
+
"line": 224,
|
455
455
|
"character": 48
|
456
456
|
},
|
457
457
|
"name": "Tests"
|
@@ -469,7 +469,7 @@
|
|
469
469
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
470
470
|
"location": {
|
471
471
|
"filePath": "jest.tester.ts",
|
472
|
-
"line":
|
472
|
+
"line": 38,
|
473
473
|
"character": 36
|
474
474
|
},
|
475
475
|
"name": "implements Tester",
|
@@ -478,7 +478,7 @@
|
|
478
478
|
"__schema": "TypeRefSchema",
|
479
479
|
"location": {
|
480
480
|
"filePath": "jest.tester.ts",
|
481
|
-
"line":
|
481
|
+
"line": 38,
|
482
482
|
"character": 36
|
483
483
|
},
|
484
484
|
"name": "Tester",
|
@@ -486,7 +486,7 @@
|
|
486
486
|
"_legacy": {
|
487
487
|
"scope": "teambit.defender",
|
488
488
|
"name": "jest",
|
489
|
-
"version": "1.0.
|
489
|
+
"version": "1.0.333"
|
490
490
|
},
|
491
491
|
"_scope": "teambit.defender"
|
492
492
|
}
|
@@ -831,7 +831,7 @@
|
|
831
831
|
"__schema": "TypeSchema",
|
832
832
|
"location": {
|
833
833
|
"filePath": "jest.tester.ts",
|
834
|
-
"line":
|
834
|
+
"line": 19,
|
835
835
|
"character": 1
|
836
836
|
},
|
837
837
|
"signature": "type JestTesterOptions = {\n patterns?: string[] | undefined;\n roots?: string[] | undefined;\n resolveSpecPaths?: ((component: Component, context: TesterContext) => string[]) | undefined;\n}",
|
@@ -840,7 +840,7 @@
|
|
840
840
|
"__schema": "TypeLiteralSchema",
|
841
841
|
"location": {
|
842
842
|
"filePath": "jest.tester.ts",
|
843
|
-
"line":
|
843
|
+
"line": 19,
|
844
844
|
"character": 33
|
845
845
|
},
|
846
846
|
"members": [
|
@@ -848,14 +848,14 @@
|
|
848
848
|
"__schema": "VariableLikeSchema",
|
849
849
|
"location": {
|
850
850
|
"filePath": "jest.tester.ts",
|
851
|
-
"line":
|
851
|
+
"line": 23,
|
852
852
|
"character": 3
|
853
853
|
},
|
854
854
|
"doc": {
|
855
855
|
"__schema": "DocSchema",
|
856
856
|
"location": {
|
857
857
|
"filePath": "jest.tester.ts",
|
858
|
-
"line":
|
858
|
+
"line": 20,
|
859
859
|
"character": 3
|
860
860
|
},
|
861
861
|
"raw": "/**\n * array of patterns to test. (override the patterns provided by the context)\n */",
|
@@ -868,14 +868,14 @@
|
|
868
868
|
"__schema": "TypeArraySchema",
|
869
869
|
"location": {
|
870
870
|
"filePath": "jest.tester.ts",
|
871
|
-
"line":
|
871
|
+
"line": 23,
|
872
872
|
"character": 14
|
873
873
|
},
|
874
874
|
"type": {
|
875
875
|
"__schema": "KeywordTypeSchema",
|
876
876
|
"location": {
|
877
877
|
"filePath": "jest.tester.ts",
|
878
|
-
"line":
|
878
|
+
"line": 23,
|
879
879
|
"character": 14
|
880
880
|
},
|
881
881
|
"name": "string"
|
@@ -887,14 +887,14 @@
|
|
887
887
|
"__schema": "VariableLikeSchema",
|
888
888
|
"location": {
|
889
889
|
"filePath": "jest.tester.ts",
|
890
|
-
"line":
|
890
|
+
"line": 28,
|
891
891
|
"character": 3
|
892
892
|
},
|
893
893
|
"doc": {
|
894
894
|
"__schema": "DocSchema",
|
895
895
|
"location": {
|
896
896
|
"filePath": "jest.tester.ts",
|
897
|
-
"line":
|
897
|
+
"line": 25,
|
898
898
|
"character": 3
|
899
899
|
},
|
900
900
|
"raw": "/**\n * add more root paths to look for tests.\n */",
|
@@ -907,14 +907,14 @@
|
|
907
907
|
"__schema": "TypeArraySchema",
|
908
908
|
"location": {
|
909
909
|
"filePath": "jest.tester.ts",
|
910
|
-
"line":
|
910
|
+
"line": 28,
|
911
911
|
"character": 11
|
912
912
|
},
|
913
913
|
"type": {
|
914
914
|
"__schema": "KeywordTypeSchema",
|
915
915
|
"location": {
|
916
916
|
"filePath": "jest.tester.ts",
|
917
|
-
"line":
|
917
|
+
"line": 28,
|
918
918
|
"character": 11
|
919
919
|
},
|
920
920
|
"name": "string"
|
@@ -926,14 +926,14 @@
|
|
926
926
|
"__schema": "VariableLikeSchema",
|
927
927
|
"location": {
|
928
928
|
"filePath": "jest.tester.ts",
|
929
|
-
"line":
|
929
|
+
"line": 35,
|
930
930
|
"character": 3
|
931
931
|
},
|
932
932
|
"doc": {
|
933
933
|
"__schema": "DocSchema",
|
934
934
|
"location": {
|
935
935
|
"filePath": "jest.tester.ts",
|
936
|
-
"line":
|
936
|
+
"line": 30,
|
937
937
|
"character": 3
|
938
938
|
},
|
939
939
|
"raw": "/**\n * A function that knows to resolve the paths of the spec files.\n * This usually used when you want only subset of your spec files to be used\n * (usually when you use multi tester with different specs files for each tester instance).\n */",
|
@@ -946,7 +946,7 @@
|
|
946
946
|
"__schema": "FunctionLikeSchema",
|
947
947
|
"location": {
|
948
948
|
"filePath": "jest.tester.ts",
|
949
|
-
"line":
|
949
|
+
"line": 35,
|
950
950
|
"character": 22
|
951
951
|
},
|
952
952
|
"signature": "(component: Component, context: TesterContext): string[]",
|
@@ -956,7 +956,7 @@
|
|
956
956
|
"__schema": "ParameterSchema",
|
957
957
|
"location": {
|
958
958
|
"filePath": "jest.tester.ts",
|
959
|
-
"line":
|
959
|
+
"line": 35,
|
960
960
|
"character": 23
|
961
961
|
},
|
962
962
|
"name": "component",
|
@@ -964,7 +964,7 @@
|
|
964
964
|
"__schema": "TypeRefSchema",
|
965
965
|
"location": {
|
966
966
|
"filePath": "jest.tester.ts",
|
967
|
-
"line":
|
967
|
+
"line": 35,
|
968
968
|
"character": 34
|
969
969
|
},
|
970
970
|
"name": "Component"
|
@@ -976,7 +976,7 @@
|
|
976
976
|
"__schema": "ParameterSchema",
|
977
977
|
"location": {
|
978
978
|
"filePath": "jest.tester.ts",
|
979
|
-
"line":
|
979
|
+
"line": 35,
|
980
980
|
"character": 45
|
981
981
|
},
|
982
982
|
"name": "context",
|
@@ -984,7 +984,7 @@
|
|
984
984
|
"__schema": "TypeRefSchema",
|
985
985
|
"location": {
|
986
986
|
"filePath": "jest.tester.ts",
|
987
|
-
"line":
|
987
|
+
"line": 35,
|
988
988
|
"character": 54
|
989
989
|
},
|
990
990
|
"name": "TesterContext"
|
@@ -997,14 +997,14 @@
|
|
997
997
|
"__schema": "TypeArraySchema",
|
998
998
|
"location": {
|
999
999
|
"filePath": "jest.tester.ts",
|
1000
|
-
"line":
|
1000
|
+
"line": 35,
|
1001
1001
|
"character": 72
|
1002
1002
|
},
|
1003
1003
|
"type": {
|
1004
1004
|
"__schema": "KeywordTypeSchema",
|
1005
1005
|
"location": {
|
1006
1006
|
"filePath": "jest.tester.ts",
|
1007
|
-
"line":
|
1007
|
+
"line": 35,
|
1008
1008
|
"character": 72
|
1009
1009
|
},
|
1010
1010
|
"name": "string"
|
@@ -1021,7 +1021,7 @@
|
|
1021
1021
|
"__schema": "ClassSchema",
|
1022
1022
|
"location": {
|
1023
1023
|
"filePath": "jest.tester.ts",
|
1024
|
-
"line":
|
1024
|
+
"line": 38,
|
1025
1025
|
"character": 1
|
1026
1026
|
},
|
1027
1027
|
"signature": "class JestTester",
|
@@ -1031,7 +1031,7 @@
|
|
1031
1031
|
"__schema": "ConstructorSchema",
|
1032
1032
|
"location": {
|
1033
1033
|
"filePath": "jest.tester.ts",
|
1034
|
-
"line":
|
1034
|
+
"line": 41,
|
1035
1035
|
"character": 3
|
1036
1036
|
},
|
1037
1037
|
"signature": "constructor JestTester(id: string, jestConfig: any, jestModulePath: string, jestWorker: HarmonyWorker<JestWorker>, logger: Logger, opts?: JestTesterOptions): JestTester",
|
@@ -1041,7 +1041,7 @@
|
|
1041
1041
|
"__schema": "ParameterSchema",
|
1042
1042
|
"location": {
|
1043
1043
|
"filePath": "jest.tester.ts",
|
1044
|
-
"line":
|
1044
|
+
"line": 42,
|
1045
1045
|
"character": 5
|
1046
1046
|
},
|
1047
1047
|
"name": "id",
|
@@ -1049,7 +1049,7 @@
|
|
1049
1049
|
"__schema": "KeywordTypeSchema",
|
1050
1050
|
"location": {
|
1051
1051
|
"filePath": "jest.tester.ts",
|
1052
|
-
"line":
|
1052
|
+
"line": 42,
|
1053
1053
|
"character": 18
|
1054
1054
|
},
|
1055
1055
|
"name": "string"
|
@@ -1061,7 +1061,7 @@
|
|
1061
1061
|
"__schema": "ParameterSchema",
|
1062
1062
|
"location": {
|
1063
1063
|
"filePath": "jest.tester.ts",
|
1064
|
-
"line":
|
1064
|
+
"line": 43,
|
1065
1065
|
"character": 5
|
1066
1066
|
},
|
1067
1067
|
"name": "jestConfig",
|
@@ -1069,7 +1069,7 @@
|
|
1069
1069
|
"__schema": "KeywordTypeSchema",
|
1070
1070
|
"location": {
|
1071
1071
|
"filePath": "jest.tester.ts",
|
1072
|
-
"line":
|
1072
|
+
"line": 43,
|
1073
1073
|
"character": 26
|
1074
1074
|
},
|
1075
1075
|
"name": "any"
|
@@ -1081,7 +1081,7 @@
|
|
1081
1081
|
"__schema": "ParameterSchema",
|
1082
1082
|
"location": {
|
1083
1083
|
"filePath": "jest.tester.ts",
|
1084
|
-
"line":
|
1084
|
+
"line": 44,
|
1085
1085
|
"character": 5
|
1086
1086
|
},
|
1087
1087
|
"name": "jestModulePath",
|
@@ -1089,7 +1089,7 @@
|
|
1089
1089
|
"__schema": "KeywordTypeSchema",
|
1090
1090
|
"location": {
|
1091
1091
|
"filePath": "jest.tester.ts",
|
1092
|
-
"line":
|
1092
|
+
"line": 44,
|
1093
1093
|
"character": 29
|
1094
1094
|
},
|
1095
1095
|
"name": "string"
|
@@ -1101,7 +1101,7 @@
|
|
1101
1101
|
"__schema": "ParameterSchema",
|
1102
1102
|
"location": {
|
1103
1103
|
"filePath": "jest.tester.ts",
|
1104
|
-
"line":
|
1104
|
+
"line": 45,
|
1105
1105
|
"character": 5
|
1106
1106
|
},
|
1107
1107
|
"name": "jestWorker",
|
@@ -1109,7 +1109,7 @@
|
|
1109
1109
|
"__schema": "TypeRefSchema",
|
1110
1110
|
"location": {
|
1111
1111
|
"filePath": "jest.tester.ts",
|
1112
|
-
"line":
|
1112
|
+
"line": 45,
|
1113
1113
|
"character": 25
|
1114
1114
|
},
|
1115
1115
|
"name": "HarmonyWorker",
|
@@ -1118,7 +1118,7 @@
|
|
1118
1118
|
"__schema": "TypeRefSchema",
|
1119
1119
|
"location": {
|
1120
1120
|
"filePath": "jest.tester.ts",
|
1121
|
-
"line":
|
1121
|
+
"line": 45,
|
1122
1122
|
"character": 39
|
1123
1123
|
},
|
1124
1124
|
"name": "JestWorker"
|
@@ -1132,7 +1132,7 @@
|
|
1132
1132
|
"__schema": "ParameterSchema",
|
1133
1133
|
"location": {
|
1134
1134
|
"filePath": "jest.tester.ts",
|
1135
|
-
"line":
|
1135
|
+
"line": 46,
|
1136
1136
|
"character": 5
|
1137
1137
|
},
|
1138
1138
|
"name": "logger",
|
@@ -1140,7 +1140,7 @@
|
|
1140
1140
|
"__schema": "TypeRefSchema",
|
1141
1141
|
"location": {
|
1142
1142
|
"filePath": "jest.tester.ts",
|
1143
|
-
"line":
|
1143
|
+
"line": 46,
|
1144
1144
|
"character": 21
|
1145
1145
|
},
|
1146
1146
|
"name": "Logger"
|
@@ -1152,7 +1152,7 @@
|
|
1152
1152
|
"__schema": "ParameterSchema",
|
1153
1153
|
"location": {
|
1154
1154
|
"filePath": "jest.tester.ts",
|
1155
|
-
"line":
|
1155
|
+
"line": 47,
|
1156
1156
|
"character": 5
|
1157
1157
|
},
|
1158
1158
|
"name": "opts",
|
@@ -1160,7 +1160,7 @@
|
|
1160
1160
|
"__schema": "TypeRefSchema",
|
1161
1161
|
"location": {
|
1162
1162
|
"filePath": "jest.tester.ts",
|
1163
|
-
"line":
|
1163
|
+
"line": 47,
|
1164
1164
|
"character": 19
|
1165
1165
|
},
|
1166
1166
|
"name": "JestTesterOptions"
|
@@ -1174,7 +1174,7 @@
|
|
1174
1174
|
"__schema": "ThisTypeSchema",
|
1175
1175
|
"location": {
|
1176
1176
|
"filePath": "jest.tester.ts",
|
1177
|
-
"line":
|
1177
|
+
"line": 38,
|
1178
1178
|
"character": 1
|
1179
1179
|
},
|
1180
1180
|
"name": "JestTester"
|
@@ -1185,7 +1185,7 @@
|
|
1185
1185
|
"__schema": "VariableLikeSchema",
|
1186
1186
|
"location": {
|
1187
1187
|
"filePath": "jest.tester.ts",
|
1188
|
-
"line":
|
1188
|
+
"line": 53,
|
1189
1189
|
"character": 3
|
1190
1190
|
},
|
1191
1191
|
"signature": "(property) JestTester.configPath: any",
|
@@ -1194,7 +1194,7 @@
|
|
1194
1194
|
"__schema": "InferenceTypeSchema",
|
1195
1195
|
"location": {
|
1196
1196
|
"filePath": "jest.tester.ts",
|
1197
|
-
"line":
|
1197
|
+
"line": 53,
|
1198
1198
|
"character": 3
|
1199
1199
|
},
|
1200
1200
|
"type": "any"
|
@@ -1206,7 +1206,7 @@
|
|
1206
1206
|
"__schema": "VariableLikeSchema",
|
1207
1207
|
"location": {
|
1208
1208
|
"filePath": "jest.tester.ts",
|
1209
|
-
"line":
|
1209
|
+
"line": 55,
|
1210
1210
|
"character": 3
|
1211
1211
|
},
|
1212
1212
|
"signature": "(property) JestTester.displayName: string",
|
@@ -1215,7 +1215,7 @@
|
|
1215
1215
|
"__schema": "InferenceTypeSchema",
|
1216
1216
|
"location": {
|
1217
1217
|
"filePath": "jest.tester.ts",
|
1218
|
-
"line":
|
1218
|
+
"line": 55,
|
1219
1219
|
"character": 3
|
1220
1220
|
},
|
1221
1221
|
"type": "string"
|
@@ -1227,7 +1227,7 @@
|
|
1227
1227
|
"__schema": "VariableLikeSchema",
|
1228
1228
|
"location": {
|
1229
1229
|
"filePath": "jest.tester.ts",
|
1230
|
-
"line":
|
1230
|
+
"line": 57,
|
1231
1231
|
"character": 3
|
1232
1232
|
},
|
1233
1233
|
"signature": "(property) JestTester._callback: CallbackFn | undefined",
|
@@ -1236,7 +1236,7 @@
|
|
1236
1236
|
"__schema": "TypeUnionSchema",
|
1237
1237
|
"location": {
|
1238
1238
|
"filePath": "jest.tester.ts",
|
1239
|
-
"line":
|
1239
|
+
"line": 57,
|
1240
1240
|
"character": 14
|
1241
1241
|
},
|
1242
1242
|
"types": [
|
@@ -1244,7 +1244,7 @@
|
|
1244
1244
|
"__schema": "TypeRefSchema",
|
1245
1245
|
"location": {
|
1246
1246
|
"filePath": "jest.tester.ts",
|
1247
|
-
"line":
|
1247
|
+
"line": 57,
|
1248
1248
|
"character": 14
|
1249
1249
|
},
|
1250
1250
|
"name": "CallbackFn"
|
@@ -1253,7 +1253,7 @@
|
|
1253
1253
|
"__schema": "KeywordTypeSchema",
|
1254
1254
|
"location": {
|
1255
1255
|
"filePath": "jest.tester.ts",
|
1256
|
-
"line":
|
1256
|
+
"line": 57,
|
1257
1257
|
"character": 27
|
1258
1258
|
},
|
1259
1259
|
"name": "undefined"
|
@@ -1266,7 +1266,7 @@
|
|
1266
1266
|
"__schema": "FunctionLikeSchema",
|
1267
1267
|
"location": {
|
1268
1268
|
"filePath": "jest.tester.ts",
|
1269
|
-
"line":
|
1269
|
+
"line": 59,
|
1270
1270
|
"character": 3
|
1271
1271
|
},
|
1272
1272
|
"signature": "(method) JestTester.displayConfig(): string",
|
@@ -1276,7 +1276,7 @@
|
|
1276
1276
|
"__schema": "InferenceTypeSchema",
|
1277
1277
|
"location": {
|
1278
1278
|
"filePath": "jest.tester.ts",
|
1279
|
-
"line":
|
1279
|
+
"line": 59,
|
1280
1280
|
"character": 3
|
1281
1281
|
},
|
1282
1282
|
"type": "string"
|
@@ -1287,7 +1287,7 @@
|
|
1287
1287
|
"__schema": "FunctionLikeSchema",
|
1288
1288
|
"location": {
|
1289
1289
|
"filePath": "jest.tester.ts",
|
1290
|
-
"line":
|
1290
|
+
"line": 63,
|
1291
1291
|
"character": 3
|
1292
1292
|
},
|
1293
1293
|
"signature": "(method) JestTester.version(): any",
|
@@ -1297,7 +1297,7 @@
|
|
1297
1297
|
"__schema": "InferenceTypeSchema",
|
1298
1298
|
"location": {
|
1299
1299
|
"filePath": "jest.tester.ts",
|
1300
|
-
"line":
|
1300
|
+
"line": 63,
|
1301
1301
|
"character": 3
|
1302
1302
|
},
|
1303
1303
|
"type": "any"
|
@@ -1308,7 +1308,7 @@
|
|
1308
1308
|
"__schema": "FunctionLikeSchema",
|
1309
1309
|
"location": {
|
1310
1310
|
"filePath": "jest.tester.ts",
|
1311
|
-
"line":
|
1311
|
+
"line": 152,
|
1312
1312
|
"character": 3
|
1313
1313
|
},
|
1314
1314
|
"signature": "(method) JestTester.onTestRunComplete(callback: CallbackFn): Promise<void>",
|
@@ -1318,7 +1318,7 @@
|
|
1318
1318
|
"__schema": "ParameterSchema",
|
1319
1319
|
"location": {
|
1320
1320
|
"filePath": "jest.tester.ts",
|
1321
|
-
"line":
|
1321
|
+
"line": 152,
|
1322
1322
|
"character": 27
|
1323
1323
|
},
|
1324
1324
|
"name": "callback",
|
@@ -1326,7 +1326,7 @@
|
|
1326
1326
|
"__schema": "TypeRefSchema",
|
1327
1327
|
"location": {
|
1328
1328
|
"filePath": "jest.tester.ts",
|
1329
|
-
"line":
|
1329
|
+
"line": 152,
|
1330
1330
|
"character": 37
|
1331
1331
|
},
|
1332
1332
|
"name": "CallbackFn"
|
@@ -1339,7 +1339,7 @@
|
|
1339
1339
|
"__schema": "InferenceTypeSchema",
|
1340
1340
|
"location": {
|
1341
1341
|
"filePath": "jest.tester.ts",
|
1342
|
-
"line":
|
1342
|
+
"line": 152,
|
1343
1343
|
"character": 3
|
1344
1344
|
},
|
1345
1345
|
"type": "Promise<void>"
|
@@ -1352,7 +1352,7 @@
|
|
1352
1352
|
"__schema": "FunctionLikeSchema",
|
1353
1353
|
"location": {
|
1354
1354
|
"filePath": "jest.tester.ts",
|
1355
|
-
"line":
|
1355
|
+
"line": 156,
|
1356
1356
|
"character": 3
|
1357
1357
|
},
|
1358
1358
|
"signature": "(method) JestTester.test(context: TesterContext): Promise<Tests>",
|
@@ -1362,7 +1362,7 @@
|
|
1362
1362
|
"__schema": "ParameterSchema",
|
1363
1363
|
"location": {
|
1364
1364
|
"filePath": "jest.tester.ts",
|
1365
|
-
"line":
|
1365
|
+
"line": 156,
|
1366
1366
|
"character": 14
|
1367
1367
|
},
|
1368
1368
|
"name": "context",
|
@@ -1370,7 +1370,7 @@
|
|
1370
1370
|
"__schema": "TypeRefSchema",
|
1371
1371
|
"location": {
|
1372
1372
|
"filePath": "jest.tester.ts",
|
1373
|
-
"line":
|
1373
|
+
"line": 156,
|
1374
1374
|
"character": 23
|
1375
1375
|
},
|
1376
1376
|
"name": "TesterContext"
|
@@ -1383,7 +1383,7 @@
|
|
1383
1383
|
"__schema": "TypeRefSchema",
|
1384
1384
|
"location": {
|
1385
1385
|
"filePath": "jest.tester.ts",
|
1386
|
-
"line":
|
1386
|
+
"line": 156,
|
1387
1387
|
"character": 39
|
1388
1388
|
},
|
1389
1389
|
"name": "Promise",
|
@@ -1392,7 +1392,7 @@
|
|
1392
1392
|
"__schema": "TypeRefSchema",
|
1393
1393
|
"location": {
|
1394
1394
|
"filePath": "jest.tester.ts",
|
1395
|
-
"line":
|
1395
|
+
"line": 156,
|
1396
1396
|
"character": 47
|
1397
1397
|
},
|
1398
1398
|
"name": "Tests"
|
@@ -1407,7 +1407,7 @@
|
|
1407
1407
|
"__schema": "FunctionLikeSchema",
|
1408
1408
|
"location": {
|
1409
1409
|
"filePath": "jest.tester.ts",
|
1410
|
-
"line":
|
1410
|
+
"line": 224,
|
1411
1411
|
"character": 3
|
1412
1412
|
},
|
1413
1413
|
"signature": "(method) JestTester.watch(context: TesterContext): Promise<Tests>",
|
@@ -1417,7 +1417,7 @@
|
|
1417
1417
|
"__schema": "ParameterSchema",
|
1418
1418
|
"location": {
|
1419
1419
|
"filePath": "jest.tester.ts",
|
1420
|
-
"line":
|
1420
|
+
"line": 224,
|
1421
1421
|
"character": 15
|
1422
1422
|
},
|
1423
1423
|
"name": "context",
|
@@ -1425,7 +1425,7 @@
|
|
1425
1425
|
"__schema": "TypeRefSchema",
|
1426
1426
|
"location": {
|
1427
1427
|
"filePath": "jest.tester.ts",
|
1428
|
-
"line":
|
1428
|
+
"line": 224,
|
1429
1429
|
"character": 24
|
1430
1430
|
},
|
1431
1431
|
"name": "TesterContext"
|
@@ -1438,7 +1438,7 @@
|
|
1438
1438
|
"__schema": "TypeRefSchema",
|
1439
1439
|
"location": {
|
1440
1440
|
"filePath": "jest.tester.ts",
|
1441
|
-
"line":
|
1441
|
+
"line": 224,
|
1442
1442
|
"character": 40
|
1443
1443
|
},
|
1444
1444
|
"name": "Promise",
|
@@ -1447,7 +1447,7 @@
|
|
1447
1447
|
"__schema": "TypeRefSchema",
|
1448
1448
|
"location": {
|
1449
1449
|
"filePath": "jest.tester.ts",
|
1450
|
-
"line":
|
1450
|
+
"line": 224,
|
1451
1451
|
"character": 48
|
1452
1452
|
},
|
1453
1453
|
"name": "Tests"
|
@@ -1465,7 +1465,7 @@
|
|
1465
1465
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
1466
1466
|
"location": {
|
1467
1467
|
"filePath": "jest.tester.ts",
|
1468
|
-
"line":
|
1468
|
+
"line": 38,
|
1469
1469
|
"character": 36
|
1470
1470
|
},
|
1471
1471
|
"name": "implements Tester",
|
@@ -1474,7 +1474,7 @@
|
|
1474
1474
|
"__schema": "TypeRefSchema",
|
1475
1475
|
"location": {
|
1476
1476
|
"filePath": "jest.tester.ts",
|
1477
|
-
"line":
|
1477
|
+
"line": 38,
|
1478
1478
|
"character": 36
|
1479
1479
|
},
|
1480
1480
|
"name": "Tester",
|
@@ -1482,7 +1482,7 @@
|
|
1482
1482
|
"_legacy": {
|
1483
1483
|
"scope": "teambit.defender",
|
1484
1484
|
"name": "jest",
|
1485
|
-
"version": "1.0.
|
1485
|
+
"version": "1.0.333"
|
1486
1486
|
},
|
1487
1487
|
"_scope": "teambit.defender"
|
1488
1488
|
}
|
@@ -1853,7 +1853,7 @@
|
|
1853
1853
|
"componentId": {
|
1854
1854
|
"scope": "teambit.defender",
|
1855
1855
|
"name": "jest",
|
1856
|
-
"version": "1.0.
|
1856
|
+
"version": "1.0.333"
|
1857
1857
|
},
|
1858
1858
|
"taggedModuleExports": []
|
1859
1859
|
}
|
package/dist/jest.tester.js
CHANGED
@@ -74,13 +74,6 @@ function _component() {
|
|
74
74
|
};
|
75
75
|
return data;
|
76
76
|
}
|
77
|
-
function _sources() {
|
78
|
-
const data = require("@teambit/legacy/dist/consumer/component/sources");
|
79
|
-
_sources = function () {
|
80
|
-
return data;
|
81
|
-
};
|
82
|
-
return data;
|
83
|
-
}
|
84
77
|
function _error() {
|
85
78
|
const data = require("./error");
|
86
79
|
_error = function () {
|
@@ -131,10 +124,6 @@ class JestTester {
|
|
131
124
|
if (testsFiles?.length === 0) return undefined;
|
132
125
|
const errors = this.getErrors(testsFiles);
|
133
126
|
const tests = testsFiles.map(test => {
|
134
|
-
const file = new (_sources().AbstractVinyl)({
|
135
|
-
path: test.testFilePath,
|
136
|
-
contents: (0, _fsExtra().readFileSync)(test.testFilePath)
|
137
|
-
});
|
138
127
|
const testResults = test.testResults.map(testResult => {
|
139
128
|
const error = (0, _jestMessageUtil().formatResultsErrors)([testResult], config, {
|
140
129
|
noStackTrace: true
|
@@ -142,7 +131,7 @@ class JestTester {
|
|
142
131
|
const isFailure = testResult.status === 'failed';
|
143
132
|
return new (_testsResults().TestResult)(testResult.ancestorTitles, testResult.title, testResult.status, testResult.duration, isFailure ? undefined : error, isFailure ? error : undefined);
|
144
133
|
});
|
145
|
-
const filePath =
|
134
|
+
const filePath = (0, _path().basename)(test.testFilePath);
|
146
135
|
const getError = () => {
|
147
136
|
if (!test.testExecError) return undefined;
|
148
137
|
if (testerContext.watch) {
|
package/dist/jest.tester.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_path","data","require","_fsExtra","_normalizePath","_interopRequireDefault","_minimatch","_lodash","_comlink","_tester","_testsResults","_jestMessageUtil","_component","_sources","_error","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","JestTester","constructor","id","jestConfig","jestModulePath","jestWorker","logger","opts","jestModule","displayConfig","readFileSync","version","getVersion","attachTestsToComponent","testerContext","testResult","ComponentMap","as","components","component","componentPatternValue","patterns","get","undefined","currComponent","patternEntry","resolvedPatterns","resolveComponentPattern","filter","test","some","resolvedPattern","minimatch","testFilePath","normalize","buildTestsObj","aggregatedResult","config","testsSuiteResult","toArray","map","testsFiles","length","errors","getErrors","tests","file","AbstractVinyl","path","contents","testResults","error","formatResultsErrors","noStackTrace","isFailure","status","TestResult","ancestorTitles","title","duration","filePath","basename","getError","testExecError","watch","JestError","failureMessage","message","stack","TestsFiles","numPassingTests","numFailingTests","numPendingTests","perfStats","runtime","slow","componentId","results","TestsResult","success","startTime","compact","reduce","code","type","push","onTestRunComplete","callback","_callback","context","rootDir","rootPath","roots","console","warn","debug","runInBand","coverage","watchAll","noCache","jestConfigWithSpecs","assign","testMatch","patternsToArray","withEnv","testsOutPut","runCLI","componentsWithTests","componentTestResults","Tests","Promise","resolve","workerApi","initiate","ui","stdout","stderr","stdin","envRootDir","envRuntime","envAspectDefinition","aspectPath","cbFn","proxy","globalErrors","watchTestResults","loading","onTestComplete","err","flatten","resolveSpecPaths","customPatterns","isEmpty","customPattern","rootDirs","componentDir","resolvePattern","paths","p","pattern","dir","exports"],"sources":["jest.tester.ts"],"sourcesContent":["import { resolve } from 'path';\nimport { readFileSync } from 'fs-extra';\nimport normalize from 'normalize-path';\nimport minimatch from 'minimatch';\nimport { compact, flatten, isEmpty } from 'lodash';\nimport { proxy } from 'comlink';\nimport { Logger } from '@teambit/logger';\nimport { HarmonyWorker } from '@teambit/worker';\nimport { Tester, CallbackFn, TesterContext, Tests, ComponentsResults, ComponentPatternsEntry } from '@teambit/tester';\nimport { TestsFiles, TestResult, TestsResult } from '@teambit/tests-results';\nimport { TestResult as JestTestResult, AggregatedResult } from '@jest/test-result';\nimport { formatResultsErrors } from 'jest-message-util';\nimport { Component, ComponentMap } from '@teambit/component';\nimport { AbstractVinyl } from '@teambit/legacy/dist/consumer/component/sources';\n// import { Environment } from '@teambit/envs';\n// import { EnvPolicyConfigObject, PeersAutoDetectPolicy } from '@teambit/dependency-resolver';\nimport { JestError } from './error';\nimport type { JestWorker } from './jest.worker';\n\nexport type JestTesterOptions = {\n /**\n * array of patterns to test. (override the patterns provided by the context)\n */\n patterns?: string[];\n\n /**\n * add more root paths to look for tests.\n */\n roots?: string[];\n\n /**\n * A function that knows to resolve the paths of the spec files.\n * This usually used when you want only subset of your spec files to be used\n * (usually when you use multi tester with different specs files for each tester instance).\n */\n resolveSpecPaths?: (component: Component, context: TesterContext) => string[];\n};\n\nexport class JestTester implements Tester {\n private readonly jestModule: any;\n\n constructor(\n readonly id: string,\n readonly jestConfig: any,\n private jestModulePath: string,\n private jestWorker: HarmonyWorker<JestWorker>,\n private logger: Logger,\n private opts: JestTesterOptions = {}\n ) {\n // eslint-disable-next-line global-require,import/no-dynamic-require\n this.jestModule = require(jestModulePath);\n }\n\n configPath = this.jestConfig;\n\n displayName = 'Jest';\n\n _callback: CallbackFn | undefined;\n\n displayConfig() {\n return readFileSync(this.jestConfig, 'utf8');\n }\n\n version() {\n return this.jestModule.getVersion();\n }\n\n private attachTestsToComponent(testerContext: TesterContext, testResult: JestTestResult[]) {\n return ComponentMap.as(testerContext.components, (component) => {\n const componentPatternValue = testerContext.patterns.get(component);\n if (!componentPatternValue) return undefined;\n const [currComponent, patternEntry] = componentPatternValue;\n const resolvedPatterns = this.resolveComponentPattern(currComponent, patternEntry, testerContext);\n return testResult.filter((test) =>\n resolvedPatterns.some(\n (resolvedPattern) =>\n minimatch(test.testFilePath, resolvedPattern) ||\n // on Windows, `test.testFilePath` has only single black slashes, while `resolvedPattern` has double black slashes.\n minimatch(normalize(test.testFilePath), normalize(resolvedPattern))\n )\n );\n });\n }\n\n private buildTestsObj(\n aggregatedResult: AggregatedResult,\n components: ComponentMap<JestTestResult[] | undefined>,\n testerContext: TesterContext,\n config?: any\n ): ComponentsResults[] {\n const testsSuiteResult = components.toArray().map(([component, testsFiles]) => {\n if (!testsFiles) return undefined;\n if (testsFiles?.length === 0) return undefined;\n const errors = this.getErrors(testsFiles);\n const tests = testsFiles.map((test) => {\n const file = new AbstractVinyl({ path: test.testFilePath, contents: readFileSync(test.testFilePath) });\n const testResults = test.testResults.map((testResult) => {\n const error = formatResultsErrors([testResult], config, { noStackTrace: true }) || undefined;\n const isFailure = testResult.status === 'failed';\n return new TestResult(\n testResult.ancestorTitles,\n testResult.title,\n testResult.status,\n testResult.duration,\n isFailure ? undefined : error,\n isFailure ? error : undefined\n );\n });\n const filePath = file?.basename || test.testFilePath;\n const getError = () => {\n if (!test.testExecError) return undefined;\n if (testerContext.watch) {\n // for some reason, during watch ('bit start'), if a file has an error, the `test.testExecError` is `{}`\n // (an empty object). the failureMessage contains the stringified error.\n // @todo: consider to always use the failureMessage, regardless the context.watch.\n return new JestError(test.failureMessage as string);\n }\n return new JestError(test.testExecError?.message, test.testExecError?.stack);\n };\n const error = getError();\n return new TestsFiles(\n filePath,\n testResults,\n test.numPassingTests,\n test.numFailingTests,\n test.numPendingTests,\n test.perfStats.runtime,\n test.perfStats.slow,\n error\n );\n });\n return {\n componentId: component.id,\n results: new TestsResult(tests, aggregatedResult.success, aggregatedResult.startTime),\n errors,\n };\n });\n\n return compact(testsSuiteResult);\n }\n\n private getErrors(testResult: JestTestResult[]): JestError[] {\n return testResult.reduce((errors: JestError[], test) => {\n if (test.testExecError) {\n const { message, stack, code, type } = test.testExecError;\n errors.push(new JestError(message, stack, code, type));\n } else if (test.failureMessage) {\n errors.push(new JestError(test.failureMessage));\n }\n return errors;\n }, []);\n }\n\n async onTestRunComplete(callback: CallbackFn) {\n this._callback = callback;\n }\n\n async test(context: TesterContext): Promise<Tests> {\n // const envRootDir = context.envRuntime.envAspectDefinition.aspectPath;\n\n const config: any = {\n // Setting the rootDir to the env root dir to make sure we can resolve all the jest presets/plugins\n // from the env context\n // rootDir: envRootDir,\n // TODO: set it to envRootDir and make sure we can make the --coverage to work\n // with the current value as context.rootPath it will probably won't work correctly when using rootComponents:true (maybe even won't work at all)\n // TODO: when changing to envRootDir we have some issues with the react-native tests. so once changed again, it needs to be validated.\n rootDir: context.rootPath,\n // Setting the roots (where to search for spec files) to the root path (either workspace or capsule root)\n // TODO: consider change this to be an array of the components running dir.\n // TODO: aka: in the workspace it will be something like <ws>/node_modules/<comp-package-name>/node_modules/<comp-package-name>\n // TODO: see dependencyResolver.getRuntimeModulePath (this will make sure the peer deps resolved correctly)\n // TODO: (@GiladShoham - when trying to set it to this paths, jest ignores it probably because the paths contains \"node_modules\"\n // TODO: trying to set the https://jestjs.io/docs/27.x/configuration#testpathignorepatterns-arraystring to something else (as it contain node_modules by default)\n // TODO: didn't help)\n roots: [context.rootPath],\n };\n\n // eslint-disable-next-line no-console\n console.warn = (message: string) => {\n this.logger.warn(message);\n };\n\n if (context.debug) {\n config.debug = true;\n config.runInBand = true;\n }\n if (context.coverage) config.coverage = true;\n config.runInBand = true;\n\n if (context.watch) {\n config.watchAll = true;\n config.noCache = true;\n }\n // eslint-disable-next-line global-require,import/no-dynamic-require\n const jestConfig = require(this.jestConfig);\n\n // TODO: rollback this for now, as it makes issues.\n // TODO: it's mostly relevant for when the root components feature is enabled.\n // TODO: we might want to enable it only on that case (along with setting the env root dir as the root dir, above)\n // const moduleNameMapper = await this.calculateModuleNameMapper(\n // context.env,\n // context.rootPath,\n // context.additionalHostDependencies\n // );\n // jestConfig.moduleNameMapper = Object.assign({}, jestConfig.moduleNameMapper || {}, moduleNameMapper);\n\n const jestConfigWithSpecs = Object.assign(jestConfig, {\n testMatch: this.patternsToArray(context),\n });\n\n const withEnv = Object.assign(jestConfigWithSpecs, config);\n\n const testsOutPut = await this.jestModule.runCLI(withEnv, [this.jestConfig]);\n const testResults = testsOutPut.results.testResults;\n const componentsWithTests = this.attachTestsToComponent(context, testResults);\n const componentTestResults = this.buildTestsObj(\n testsOutPut.results,\n componentsWithTests,\n context,\n jestConfigWithSpecs\n );\n return new Tests(componentTestResults);\n }\n\n async watch(context: TesterContext): Promise<Tests> {\n // eslint-disable-next-line\n return new Promise(async (resolve) => {\n const workerApi = this.jestWorker.initiate(\n context.ui ? { stdout: true, stderr: true, stdin: true } : { stdout: false, stderr: false, stdin: false }\n );\n\n // eslint-disable-next-line\n const jestConfig = require(this.jestConfig);\n\n const envRootDir = context.envRuntime.envAspectDefinition?.aspectPath;\n if (!envRootDir) {\n this.logger.warn(`jest tester, envRootDir is not defined, for env ${context.envRuntime.id}`);\n }\n\n const jestConfigWithSpecs = Object.assign(jestConfig, {\n testMatch: this.patternsToArray(context),\n });\n\n try {\n const cbFn = proxy((results) => {\n if (!this._callback) return;\n const testResults = results.testResults;\n const componentsWithTests = this.attachTestsToComponent(context, testResults);\n const componentTestResults = this.buildTestsObj(results, componentsWithTests, context, jestConfigWithSpecs);\n const globalErrors = this.getErrors(testResults);\n const watchTestResults = {\n loading: false,\n errors: globalErrors,\n components: componentTestResults,\n };\n this._callback(watchTestResults);\n resolve(watchTestResults);\n });\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n await workerApi.onTestComplete(cbFn);\n\n await workerApi.watch(\n this.jestConfig,\n this.patternsToArray(context),\n context.rootPath,\n this.jestModulePath,\n envRootDir\n );\n } catch (err: any) {\n this.logger.error('jest.tester.watch() caught an error', err);\n }\n });\n }\n\n // private async calculateModuleNameMapper(\n // env: Environment,\n // rootPath: string,\n // additionalHostDependencies?: string[]\n // ): Promise<Record<string, Array<string>>> {\n // const peerDepsConfig: EnvPolicyConfigObject = await env.getDependencies();\n // const peersAutoDetectPolicy = new PeersAutoDetectPolicy(peerDepsConfig.peers || []);\n // const peers = Object.keys(peerDepsConfig.peerDependencies || {}).concat(peersAutoDetectPolicy?.names);\n // const depsToMap = peers.concat(additionalHostDependencies || []);\n\n // /**\n // * Try to resolve the dependency from the rootDir (the env dir) or from the root path (workspace/capsule root)\n // */\n // const mappedValues = ['<rootDir>/node_modules/$1', `${rootPath}/node_modules/$1`];\n\n // const moduleNameMapper = depsToMap.reduce((acc, peerName) => {\n // const keyName = `^(${peerName})$`;\n // acc[keyName] = mappedValues;\n // const internalPathKeyName = `^(${peerName}/.*)$`;\n // acc[internalPathKeyName] = mappedValues;\n // return acc;\n // }, {});\n\n // return moduleNameMapper;\n // }\n\n private patternsToArray(context: TesterContext): string[] {\n return flatten(\n context.patterns.toArray().map(([component, patternEntry]) => {\n return this.resolveComponentPattern(component, patternEntry, context);\n })\n );\n }\n\n private resolveComponentPattern(\n component: Component,\n patternEntry: ComponentPatternsEntry,\n context: TesterContext\n ): string[] {\n if (this.opts.resolveSpecPaths) {\n return this.opts.resolveSpecPaths(component, context);\n }\n const customPatterns = this.opts.patterns;\n // If pattern were provided to the specific instance of the tester, use them\n if (customPatterns && !isEmpty(customPatterns)) {\n customPatterns.map((customPattern) => {\n const rootDirs = this.opts.roots || [patternEntry.componentDir];\n return this.resolvePattern(customPattern, rootDirs);\n });\n }\n return patternEntry.paths.map((p) => p.path);\n }\n\n private resolvePattern(pattern: string, rootDirs: string[]) {\n return rootDirs.map((dir) => resolve(dir, pattern));\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,eAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;E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OAAO,IAAI,CAACE,uBAAuB,CAACR,SAAS,EAAEM,YAAY,EAAEgE,OAAO,CAAC;IACvE,CAAC,CACH,CAAC;EACH;EAEQ9D,uBAAuBA,CAC7BR,SAAoB,EACpBM,YAAoC,EACpCgE,OAAsB,EACZ;IACV,IAAI,IAAI,CAAClF,IAAI,CAAC2H,gBAAgB,EAAE;MAC9B,OAAO,IAAI,CAAC3H,IAAI,CAAC2H,gBAAgB,CAAC/G,SAAS,EAAEsE,OAAO,CAAC;IACvD;IACA,MAAM0C,cAAc,GAAG,IAAI,CAAC5H,IAAI,CAACc,QAAQ;IACzC;IACA,IAAI8G,cAAc,IAAI,CAAC,IAAAC,iBAAO,EAACD,cAAc,CAAC,EAAE;MAC9CA,cAAc,CAAC3F,GAAG,CAAE6F,aAAa,IAAK;QACpC,MAAMC,QAAQ,GAAG,IAAI,CAAC/H,IAAI,CAACqF,KAAK,IAAI,CAACnE,YAAY,CAAC8G,YAAY,CAAC;QAC/D,OAAO,IAAI,CAACC,cAAc,CAACH,aAAa,EAAEC,QAAQ,CAAC;MACrD,CAAC,CAAC;IACJ;IACA,OAAO7G,YAAY,CAACgH,KAAK,CAACjG,GAAG,CAAEkG,CAAC,IAAKA,CAAC,CAAC1F,IAAI,CAAC;EAC9C;EAEQwF,cAAcA,CAACG,OAAe,EAAEL,QAAkB,EAAE;IAC1D,OAAOA,QAAQ,CAAC9F,GAAG,CAAEoG,GAAG,IAAK,IAAA7B,eAAO,EAAC6B,GAAG,EAAED,OAAO,CAAC,CAAC;EACrD;AACF;AAACE,OAAA,CAAA7I,UAAA,GAAAA,UAAA","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_path","data","require","_fsExtra","_normalizePath","_interopRequireDefault","_minimatch","_lodash","_comlink","_tester","_testsResults","_jestMessageUtil","_component","_error","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","JestTester","constructor","id","jestConfig","jestModulePath","jestWorker","logger","opts","jestModule","displayConfig","readFileSync","version","getVersion","attachTestsToComponent","testerContext","testResult","ComponentMap","as","components","component","componentPatternValue","patterns","get","undefined","currComponent","patternEntry","resolvedPatterns","resolveComponentPattern","filter","test","some","resolvedPattern","minimatch","testFilePath","normalize","buildTestsObj","aggregatedResult","config","testsSuiteResult","toArray","map","testsFiles","length","errors","getErrors","tests","testResults","error","formatResultsErrors","noStackTrace","isFailure","status","TestResult","ancestorTitles","title","duration","filePath","basename","getError","testExecError","watch","JestError","failureMessage","message","stack","TestsFiles","numPassingTests","numFailingTests","numPendingTests","perfStats","runtime","slow","componentId","results","TestsResult","success","startTime","compact","reduce","code","type","push","onTestRunComplete","callback","_callback","context","rootDir","rootPath","roots","console","warn","debug","runInBand","coverage","watchAll","noCache","jestConfigWithSpecs","assign","testMatch","patternsToArray","withEnv","testsOutPut","runCLI","componentsWithTests","componentTestResults","Tests","Promise","resolve","workerApi","initiate","ui","stdout","stderr","stdin","envRootDir","envRuntime","envAspectDefinition","aspectPath","cbFn","proxy","globalErrors","watchTestResults","loading","onTestComplete","err","flatten","resolveSpecPaths","customPatterns","isEmpty","customPattern","rootDirs","componentDir","resolvePattern","paths","p","path","pattern","dir","exports"],"sources":["jest.tester.ts"],"sourcesContent":["import { resolve, basename } from 'path';\nimport { readFileSync } from 'fs-extra';\nimport normalize from 'normalize-path';\nimport minimatch from 'minimatch';\nimport { compact, flatten, isEmpty } from 'lodash';\nimport { proxy } from 'comlink';\nimport { Logger } from '@teambit/logger';\nimport { HarmonyWorker } from '@teambit/worker';\nimport { Tester, CallbackFn, TesterContext, Tests, ComponentsResults, ComponentPatternsEntry } from '@teambit/tester';\nimport { TestsFiles, TestResult, TestsResult } from '@teambit/tests-results';\nimport { TestResult as JestTestResult, AggregatedResult } from '@jest/test-result';\nimport { formatResultsErrors } from 'jest-message-util';\nimport { Component, ComponentMap } from '@teambit/component';\n// import { Environment } from '@teambit/envs';\n// import { EnvPolicyConfigObject, PeersAutoDetectPolicy } from '@teambit/dependency-resolver';\nimport { JestError } from './error';\nimport type { JestWorker } from './jest.worker';\n\nexport type JestTesterOptions = {\n /**\n * array of patterns to test. (override the patterns provided by the context)\n */\n patterns?: string[];\n\n /**\n * add more root paths to look for tests.\n */\n roots?: string[];\n\n /**\n * A function that knows to resolve the paths of the spec files.\n * This usually used when you want only subset of your spec files to be used\n * (usually when you use multi tester with different specs files for each tester instance).\n */\n resolveSpecPaths?: (component: Component, context: TesterContext) => string[];\n};\n\nexport class JestTester implements Tester {\n private readonly jestModule: any;\n\n constructor(\n readonly id: string,\n readonly jestConfig: any,\n private jestModulePath: string,\n private jestWorker: HarmonyWorker<JestWorker>,\n private logger: Logger,\n private opts: JestTesterOptions = {}\n ) {\n // eslint-disable-next-line global-require,import/no-dynamic-require\n this.jestModule = require(jestModulePath);\n }\n\n configPath = this.jestConfig;\n\n displayName = 'Jest';\n\n _callback: CallbackFn | undefined;\n\n displayConfig() {\n return readFileSync(this.jestConfig, 'utf8');\n }\n\n version() {\n return this.jestModule.getVersion();\n }\n\n private attachTestsToComponent(testerContext: TesterContext, testResult: JestTestResult[]) {\n return ComponentMap.as(testerContext.components, (component) => {\n const componentPatternValue = testerContext.patterns.get(component);\n if (!componentPatternValue) return undefined;\n const [currComponent, patternEntry] = componentPatternValue;\n const resolvedPatterns = this.resolveComponentPattern(currComponent, patternEntry, testerContext);\n return testResult.filter((test) =>\n resolvedPatterns.some(\n (resolvedPattern) =>\n minimatch(test.testFilePath, resolvedPattern) ||\n // on Windows, `test.testFilePath` has only single black slashes, while `resolvedPattern` has double black slashes.\n minimatch(normalize(test.testFilePath), normalize(resolvedPattern))\n )\n );\n });\n }\n\n private buildTestsObj(\n aggregatedResult: AggregatedResult,\n components: ComponentMap<JestTestResult[] | undefined>,\n testerContext: TesterContext,\n config?: any\n ): ComponentsResults[] {\n const testsSuiteResult = components.toArray().map(([component, testsFiles]) => {\n if (!testsFiles) return undefined;\n if (testsFiles?.length === 0) return undefined;\n const errors = this.getErrors(testsFiles);\n const tests = testsFiles.map((test) => {\n const testResults = test.testResults.map((testResult) => {\n const error = formatResultsErrors([testResult], config, { noStackTrace: true }) || undefined;\n const isFailure = testResult.status === 'failed';\n return new TestResult(\n testResult.ancestorTitles,\n testResult.title,\n testResult.status,\n testResult.duration,\n isFailure ? undefined : error,\n isFailure ? error : undefined\n );\n });\n const filePath = basename(test.testFilePath);\n const getError = () => {\n if (!test.testExecError) return undefined;\n if (testerContext.watch) {\n // for some reason, during watch ('bit start'), if a file has an error, the `test.testExecError` is `{}`\n // (an empty object). the failureMessage contains the stringified error.\n // @todo: consider to always use the failureMessage, regardless the context.watch.\n return new JestError(test.failureMessage as string);\n }\n return new JestError(test.testExecError?.message, test.testExecError?.stack);\n };\n const error = getError();\n return new TestsFiles(\n filePath,\n testResults,\n test.numPassingTests,\n test.numFailingTests,\n test.numPendingTests,\n test.perfStats.runtime,\n test.perfStats.slow,\n error\n );\n });\n return {\n componentId: component.id,\n results: new TestsResult(tests, aggregatedResult.success, aggregatedResult.startTime),\n errors,\n };\n });\n\n return compact(testsSuiteResult);\n }\n\n private getErrors(testResult: JestTestResult[]): JestError[] {\n return testResult.reduce((errors: JestError[], test) => {\n if (test.testExecError) {\n const { message, stack, code, type } = test.testExecError;\n errors.push(new JestError(message, stack, code, type));\n } else if (test.failureMessage) {\n errors.push(new JestError(test.failureMessage));\n }\n return errors;\n }, []);\n }\n\n async onTestRunComplete(callback: CallbackFn) {\n this._callback = callback;\n }\n\n async test(context: TesterContext): Promise<Tests> {\n // const envRootDir = context.envRuntime.envAspectDefinition.aspectPath;\n\n const config: any = {\n // Setting the rootDir to the env root dir to make sure we can resolve all the jest presets/plugins\n // from the env context\n // rootDir: envRootDir,\n // TODO: set it to envRootDir and make sure we can make the --coverage to work\n // with the current value as context.rootPath it will probably won't work correctly when using rootComponents:true (maybe even won't work at all)\n // TODO: when changing to envRootDir we have some issues with the react-native tests. so once changed again, it needs to be validated.\n rootDir: context.rootPath,\n // Setting the roots (where to search for spec files) to the root path (either workspace or capsule root)\n // TODO: consider change this to be an array of the components running dir.\n // TODO: aka: in the workspace it will be something like <ws>/node_modules/<comp-package-name>/node_modules/<comp-package-name>\n // TODO: see dependencyResolver.getRuntimeModulePath (this will make sure the peer deps resolved correctly)\n // TODO: (@GiladShoham - when trying to set it to this paths, jest ignores it probably because the paths contains \"node_modules\"\n // TODO: trying to set the https://jestjs.io/docs/27.x/configuration#testpathignorepatterns-arraystring to something else (as it contain node_modules by default)\n // TODO: didn't help)\n roots: [context.rootPath],\n };\n\n // eslint-disable-next-line no-console\n console.warn = (message: string) => {\n this.logger.warn(message);\n };\n\n if (context.debug) {\n config.debug = true;\n config.runInBand = true;\n }\n if (context.coverage) config.coverage = true;\n config.runInBand = true;\n\n if (context.watch) {\n config.watchAll = true;\n config.noCache = true;\n }\n // eslint-disable-next-line global-require,import/no-dynamic-require\n const jestConfig = require(this.jestConfig);\n\n // TODO: rollback this for now, as it makes issues.\n // TODO: it's mostly relevant for when the root components feature is enabled.\n // TODO: we might want to enable it only on that case (along with setting the env root dir as the root dir, above)\n // const moduleNameMapper = await this.calculateModuleNameMapper(\n // context.env,\n // context.rootPath,\n // context.additionalHostDependencies\n // );\n // jestConfig.moduleNameMapper = Object.assign({}, jestConfig.moduleNameMapper || {}, moduleNameMapper);\n\n const jestConfigWithSpecs = Object.assign(jestConfig, {\n testMatch: this.patternsToArray(context),\n });\n\n const withEnv = Object.assign(jestConfigWithSpecs, config);\n\n const testsOutPut = await this.jestModule.runCLI(withEnv, [this.jestConfig]);\n const testResults = testsOutPut.results.testResults;\n const componentsWithTests = this.attachTestsToComponent(context, testResults);\n const componentTestResults = this.buildTestsObj(\n testsOutPut.results,\n componentsWithTests,\n context,\n jestConfigWithSpecs\n );\n return new Tests(componentTestResults);\n }\n\n async watch(context: TesterContext): Promise<Tests> {\n // eslint-disable-next-line\n return new Promise(async (resolve) => {\n const workerApi = this.jestWorker.initiate(\n context.ui ? { stdout: true, stderr: true, stdin: true } : { stdout: false, stderr: false, stdin: false }\n );\n\n // eslint-disable-next-line\n const jestConfig = require(this.jestConfig);\n\n const envRootDir = context.envRuntime.envAspectDefinition?.aspectPath;\n if (!envRootDir) {\n this.logger.warn(`jest tester, envRootDir is not defined, for env ${context.envRuntime.id}`);\n }\n\n const jestConfigWithSpecs = Object.assign(jestConfig, {\n testMatch: this.patternsToArray(context),\n });\n\n try {\n const cbFn = proxy((results) => {\n if (!this._callback) return;\n const testResults = results.testResults;\n const componentsWithTests = this.attachTestsToComponent(context, testResults);\n const componentTestResults = this.buildTestsObj(results, componentsWithTests, context, jestConfigWithSpecs);\n const globalErrors = this.getErrors(testResults);\n const watchTestResults = {\n loading: false,\n errors: globalErrors,\n components: componentTestResults,\n };\n this._callback(watchTestResults);\n resolve(watchTestResults);\n });\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n await workerApi.onTestComplete(cbFn);\n\n await workerApi.watch(\n this.jestConfig,\n this.patternsToArray(context),\n context.rootPath,\n this.jestModulePath,\n envRootDir\n );\n } catch (err: any) {\n this.logger.error('jest.tester.watch() caught an error', err);\n }\n });\n }\n\n // private async calculateModuleNameMapper(\n // env: Environment,\n // rootPath: string,\n // additionalHostDependencies?: string[]\n // ): Promise<Record<string, Array<string>>> {\n // const peerDepsConfig: EnvPolicyConfigObject = await env.getDependencies();\n // const peersAutoDetectPolicy = new PeersAutoDetectPolicy(peerDepsConfig.peers || []);\n // const peers = Object.keys(peerDepsConfig.peerDependencies || {}).concat(peersAutoDetectPolicy?.names);\n // const depsToMap = peers.concat(additionalHostDependencies || []);\n\n // /**\n // * Try to resolve the dependency from the rootDir (the env dir) or from the root path (workspace/capsule root)\n // */\n // const mappedValues = ['<rootDir>/node_modules/$1', `${rootPath}/node_modules/$1`];\n\n // const moduleNameMapper = depsToMap.reduce((acc, peerName) => {\n // const keyName = `^(${peerName})$`;\n // acc[keyName] = mappedValues;\n // const internalPathKeyName = `^(${peerName}/.*)$`;\n // acc[internalPathKeyName] = mappedValues;\n // return acc;\n // }, {});\n\n // return moduleNameMapper;\n // }\n\n private patternsToArray(context: TesterContext): string[] {\n return flatten(\n context.patterns.toArray().map(([component, patternEntry]) => {\n return this.resolveComponentPattern(component, patternEntry, context);\n })\n );\n }\n\n private resolveComponentPattern(\n component: Component,\n patternEntry: ComponentPatternsEntry,\n context: TesterContext\n ): string[] {\n if (this.opts.resolveSpecPaths) {\n return this.opts.resolveSpecPaths(component, context);\n }\n const customPatterns = this.opts.patterns;\n // If pattern were provided to the specific instance of the tester, use them\n if (customPatterns && !isEmpty(customPatterns)) {\n customPatterns.map((customPattern) => {\n const rootDirs = this.opts.roots || [patternEntry.componentDir];\n return this.resolvePattern(customPattern, rootDirs);\n });\n }\n return patternEntry.paths.map((p) => p.path);\n }\n\n private resolvePattern(pattern: string, rootDirs: string[]) {\n return rootDirs.map((dir) => resolve(dir, pattern));\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,eAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA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YAAY,CAAC;QAC/D,OAAO,IAAI,CAACC,cAAc,CAACH,aAAa,EAAEC,QAAQ,CAAC;MACrD,CAAC,CAAC;IACJ;IACA,OAAOzG,YAAY,CAAC4G,KAAK,CAAC7F,GAAG,CAAE8F,CAAC,IAAKA,CAAC,CAACC,IAAI,CAAC;EAC9C;EAEQH,cAAcA,CAACI,OAAe,EAAEN,QAAkB,EAAE;IAC1D,OAAOA,QAAQ,CAAC1F,GAAG,CAAEiG,GAAG,IAAK,IAAA9B,eAAO,EAAC8B,GAAG,EAAED,OAAO,CAAC,CAAC;EACrD;AACF;AAACE,OAAA,CAAA1I,UAAA,GAAAA,UAAA","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.333/dist/jest.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.333/dist/jest.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/jest",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.333",
|
4
4
|
"homepage": "https://bit.cloud/teambit/defender/jest",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.defender",
|
8
8
|
"name": "jest",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.333"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"lodash": "4.17.21",
|
@@ -21,11 +21,11 @@
|
|
21
21
|
"jest-watcher": "27.5.1",
|
22
22
|
"@teambit/harmony": "0.4.6",
|
23
23
|
"@teambit/tests-results": "1.0.4",
|
24
|
-
"@teambit/cli": "0.0.
|
25
|
-
"@teambit/logger": "0.0.
|
26
|
-
"@teambit/worker": "0.0.
|
27
|
-
"@teambit/component": "1.0.
|
28
|
-
"@teambit/tester": "1.0.
|
24
|
+
"@teambit/cli": "0.0.910",
|
25
|
+
"@teambit/logger": "0.0.1003",
|
26
|
+
"@teambit/worker": "0.0.1214",
|
27
|
+
"@teambit/component": "1.0.333",
|
28
|
+
"@teambit/tester": "1.0.333"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@types/lodash": "4.14.165",
|
@@ -38,7 +38,6 @@
|
|
38
38
|
"@teambit/harmony.envs.core-aspect-env": "0.0.42"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
|
-
"@teambit/legacy": "1.0.721",
|
42
41
|
"react": "^17.0.0 || ^18.0.0",
|
43
42
|
"@types/react": "^17.0.73"
|
44
43
|
},
|