@testspectra/cli 1.1.11-rc.5 → 1.1.12

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.
Files changed (89) hide show
  1. package/demo-app/assets/index-DDYS5fLp.css +1 -0
  2. package/demo-app/assets/index-euCENPMy.js +154 -0
  3. package/demo-app/index.html +2 -2
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/commands/__tests__/run-e2e.test.js +24 -6
  6. package/dist/commands/demo.d.ts +1 -0
  7. package/dist/commands/demo.js +26 -4
  8. package/dist/commands/doctor.js +23 -0
  9. package/dist/commands/run.d.ts +3 -0
  10. package/dist/commands/run.js +41 -4
  11. package/dist/commands/test.d.ts +9 -9
  12. package/dist/commands/test.js +40 -75
  13. package/dist/commands/update.d.ts +3 -0
  14. package/dist/commands/update.js +109 -0
  15. package/dist/config/loader.js +31 -4
  16. package/dist/config/schema.d.ts +58 -0
  17. package/dist/config/schema.js +4 -1
  18. package/dist/generator/__tests__/tsconfig-isolation.test.js +21 -0
  19. package/dist/generator/__tests__/type-generator.test.js +14 -0
  20. package/dist/generator/tsconfig-generator.js +1 -0
  21. package/dist/generator/type-generator.js +2 -0
  22. package/dist/index.js +8 -4
  23. package/dist/lifecycle/__tests__/lifecycle-engine.test.js +290 -0
  24. package/dist/lifecycle/hook-discovery.d.ts +24 -0
  25. package/dist/lifecycle/hook-discovery.js +60 -0
  26. package/dist/lifecycle/hook-dispatcher.d.ts +34 -0
  27. package/dist/lifecycle/hook-dispatcher.js +190 -0
  28. package/dist/lifecycle/index.d.ts +3 -0
  29. package/dist/lifecycle/index.js +3 -0
  30. package/dist/lifecycle/parallel-grouping.d.ts +27 -0
  31. package/dist/lifecycle/parallel-grouping.js +151 -0
  32. package/dist/reporter/semantic-formatter.js +2 -0
  33. package/dist/reporter/types.d.ts +1 -1
  34. package/dist/runner/bridge.d.ts +2 -0
  35. package/dist/runner/bridge.js +4 -1
  36. package/dist/runner/reporter.d.ts +5 -43
  37. package/dist/runner/reporter.js +46 -179
  38. package/dist/utils/__tests__/demo-state.test.d.ts +1 -0
  39. package/dist/utils/__tests__/demo-state.test.js +96 -0
  40. package/dist/utils/api-server.d.ts +1 -1
  41. package/dist/utils/api-server.js +7 -3
  42. package/dist/utils/demo-server.d.ts +2 -0
  43. package/dist/utils/demo-server.js +18 -5
  44. package/dist/utils/demo-state.d.ts +40 -0
  45. package/dist/utils/demo-state.js +157 -0
  46. package/package.json +9 -8
  47. package/templates/default/fixtures/sampleDocument.pdf +14 -0
  48. package/templates/default/fixtures/sampleImage.png +0 -0
  49. package/templates/default/package.json +2 -2
  50. package/templates/default/page-objects/MatchersPage/common.ts +41 -0
  51. package/templates/default/page-objects/MatchersPage/mobile.ts +8 -3
  52. package/templates/default/page-objects/PlaygroundPage/mobile.ts +6 -0
  53. package/templates/default/page-objects/PlaygroundPage/web.ts +2 -0
  54. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/mobile.test.ts +3 -0
  55. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/mobile.test.ts +3 -0
  56. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +1 -1
  57. package/templates/default/specs/Playground/TC-0003-file-upload/web.test.ts +11 -0
  58. package/templates/default/spectra.config.ts +5 -1
  59. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db +0 -0
  60. package/templates/nx/.nx/workspace-data/d/daemon.log +7063 -1012
  61. package/templates/nx/.nx/workspace-data/file-map.json +181 -169
  62. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  63. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  64. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +81 -130
  65. package/templates/nx/.nx/workspace-data/project-graph.json +83 -138
  66. package/templates/nx/package.json +2 -2
  67. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +1 -1
  68. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0003-file-upload/web.test.ts +11 -0
  69. package/templates/nx/shared/testing/fixtures/sampleDocument.pdf +14 -0
  70. package/templates/nx/shared/testing/fixtures/sampleImage.png +0 -0
  71. package/templates/nx/shared/testing/page-objects/MatchersPage/mobile.ts +68 -26
  72. package/templates/nx/shared/testing/page-objects/PlaygroundPage/mobile.ts +39 -17
  73. package/templates/nx/shared/testing/page-objects/PlaygroundPage/web.ts +2 -0
  74. package/templates/nx/spectra.config.ts +3 -3
  75. package/templates/react-component/fixtures/sampleDocument.pdf +14 -0
  76. package/templates/react-component/fixtures/sampleImage.png +0 -0
  77. package/templates/react-component/package.json +3 -3
  78. package/templates/react-component/page-objects/FileUploadComponent/web.ts +15 -0
  79. package/templates/react-component/specs/FileUploadComponent/TC-0001-upload-fixtures/web.test.tsx +18 -0
  80. package/templates/react-component/specs/UserListComponent/TC-0001-intercepted-user-list/spec.md +20 -0
  81. package/templates/react-component/specs/UserListComponent/TC-0001-intercepted-user-list/web.test.tsx +15 -0
  82. package/templates/react-component/specs/UserListComponent/suite.md +12 -0
  83. package/templates/react-component/src/components/FileUpload/FileUpload.tsx +44 -0
  84. package/templates/react-component/src/components/UserList/UserList.tsx +48 -0
  85. package/bin/.testspectra-runner.hash +0 -1
  86. package/demo-app/assets/index-BhlW-eXG.css +0 -1
  87. package/demo-app/assets/index-DOtRypCa.js +0 -154
  88. package/dist/commands/__tests__/doctor-scope.test.js +0 -24
  89. /package/dist/{commands/__tests__/doctor-scope.test.d.ts → lifecycle/__tests__/lifecycle-engine.test.d.ts} +0 -0
@@ -6,12 +6,8 @@
6
6
  "fileMap": {
7
7
  "nonProjectFiles": [
8
8
  {
9
- "file": "nx.json",
10
- "hash": "2058784385052146326"
11
- },
12
- {
13
- "file": "pnpm-workspace.yaml",
14
- "hash": "11062973401223444734"
9
+ "file": "tsconfig.json",
10
+ "hash": "8890589832440448254"
15
11
  },
16
12
  {
17
13
  "file": ".vscode/extensions.json",
@@ -22,183 +18,35 @@
22
18
  "hash": "3499066280807669204"
23
19
  },
24
20
  {
25
- "file": ".gitignore",
26
- "hash": "1731686672878252345"
21
+ "file": "nx.json",
22
+ "hash": "2058784385052146326"
27
23
  },
28
24
  {
29
- "file": "pnpm-lock.yaml",
30
- "hash": "5459540818199025768"
25
+ "file": ".cursorrules",
26
+ "hash": "5914400097935294858"
31
27
  },
32
28
  {
33
- "file": "spectra.config.ts",
34
- "hash": "5826567216431235375"
29
+ "file": "pnpm-lock.yaml",
30
+ "hash": "10112233838185913654"
35
31
  },
36
32
  {
37
- "file": "tsconfig.json",
38
- "hash": "8890589832440448254"
33
+ "file": "pnpm-workspace.yaml",
34
+ "hash": "11062973401223444734"
39
35
  },
40
36
  {
41
- "file": ".cursorrules",
42
- "hash": "5914400097935294858"
37
+ "file": ".gitignore",
38
+ "hash": "1731686672878252345"
43
39
  },
44
40
  {
45
41
  "file": "CLAUDE.md",
46
42
  "hash": "9577234870771110688"
43
+ },
44
+ {
45
+ "file": "spectra.config.ts",
46
+ "hash": "10943132076339511105"
47
47
  }
48
48
  ],
49
49
  "projectFileMap": {
50
- "shared-testing": [
51
- {
52
- "file": "shared/testing/fixtures/apiData.json",
53
- "hash": "5455579627617620587"
54
- },
55
- {
56
- "file": "shared/testing/fixtures/playgroundData.json",
57
- "hash": "6646110001933817841"
58
- },
59
- {
60
- "file": "shared/testing/global-hooks/after/mobile.hook.ts",
61
- "hash": "17704300444638893067"
62
- },
63
- {
64
- "file": "shared/testing/global-hooks/after/web.hook.ts",
65
- "hash": "4319467857538977176"
66
- },
67
- {
68
- "file": "shared/testing/global-hooks/before/mobile.hook.ts",
69
- "hash": "1418831585755647488"
70
- },
71
- {
72
- "file": "shared/testing/global-hooks/before/web.hook.ts",
73
- "hash": "5655415662119179755"
74
- },
75
- {
76
- "file": "shared/testing/page-objects/MatchersPage/mobile.ts",
77
- "hash": "13486007993280160103"
78
- },
79
- {
80
- "file": "shared/testing/page-objects/MatchersPage/web.ts",
81
- "hash": "6708715830774655929"
82
- },
83
- {
84
- "file": "shared/testing/page-objects/NavigationPage/mobile.ts",
85
- "hash": "9843815020701207652"
86
- },
87
- {
88
- "file": "shared/testing/page-objects/NavigationPage/web.ts",
89
- "hash": "2341250336288762399"
90
- },
91
- {
92
- "file": "shared/testing/page-objects/PlaygroundPage/mobile.ts",
93
- "hash": "8192927760362991284"
94
- },
95
- {
96
- "file": "shared/testing/page-objects/PlaygroundPage/web.ts",
97
- "hash": "13289179655405426712"
98
- },
99
- {
100
- "file": "shared/testing/project.json",
101
- "hash": "7371378800661206349"
102
- },
103
- {
104
- "file": "shared/testing/support/actions/fillCredentials/mobile.action.ts",
105
- "hash": "12211081252127526235"
106
- },
107
- {
108
- "file": "shared/testing/support/actions/fillCredentials/web.action.ts",
109
- "hash": "9993357721307207213"
110
- },
111
- {
112
- "file": "shared/testing/support/steps/togglePlaygroundStates/mobile.step.ts",
113
- "hash": "2440504136325471241"
114
- },
115
- {
116
- "file": "shared/testing/support/steps/togglePlaygroundStates/step.md",
117
- "hash": "7033246481886462733"
118
- },
119
- {
120
- "file": "shared/testing/support/steps/togglePlaygroundStates/web.step.ts",
121
- "hash": "3684774997705487691"
122
- },
123
- {
124
- "file": "shared/testing/support/steps/verifyPlaygroundState/mobile.step.ts",
125
- "hash": "7780197038828149329"
126
- },
127
- {
128
- "file": "shared/testing/support/steps/verifyPlaygroundState/step.md",
129
- "hash": "4808698815589956784"
130
- },
131
- {
132
- "file": "shared/testing/support/steps/verifyPlaygroundState/web.step.ts",
133
- "hash": "7710645189151727546"
134
- }
135
- ],
136
- "playground-e2e": [
137
- {
138
- "file": "packages/playground/e2e/project.json",
139
- "hash": "7483436778468358608"
140
- },
141
- {
142
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/mobile.test.ts",
143
- "hash": "4890867782031227471"
144
- },
145
- {
146
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/spec.md",
147
- "hash": "1594899313611085372"
148
- },
149
- {
150
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts",
151
- "hash": "1983735092902158167"
152
- },
153
- {
154
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/mobile.test.ts",
155
- "hash": "11975331038121344625"
156
- },
157
- {
158
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/spec.md",
159
- "hash": "12190577339537127331"
160
- },
161
- {
162
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts",
163
- "hash": "12887248939991345892"
164
- },
165
- {
166
- "file": "packages/playground/e2e/specs/Playground/hooks/after/mobile.hook.ts",
167
- "hash": "14051783072589214011"
168
- },
169
- {
170
- "file": "packages/playground/e2e/specs/Playground/hooks/after/web.hook.ts",
171
- "hash": "14051783072589214011"
172
- },
173
- {
174
- "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/mobile.hook.ts",
175
- "hash": "14051783072589214011"
176
- },
177
- {
178
- "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/web.hook.ts",
179
- "hash": "14051783072589214011"
180
- },
181
- {
182
- "file": "packages/playground/e2e/specs/Playground/hooks/before/mobile.hook.ts",
183
- "hash": "14051783072589214011"
184
- },
185
- {
186
- "file": "packages/playground/e2e/specs/Playground/hooks/before/web.hook.ts",
187
- "hash": "14051783072589214011"
188
- },
189
- {
190
- "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/mobile.hook.ts",
191
- "hash": "14051783072589214011"
192
- },
193
- {
194
- "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/web.hook.ts",
195
- "hash": "14051783072589214011"
196
- },
197
- {
198
- "file": "packages/playground/e2e/specs/Playground/suite.md",
199
- "hash": "17750886301217575279"
200
- }
201
- ],
202
50
  "matchers-e2e": [
203
51
  {
204
52
  "file": "packages/matchers/e2e/project.json",
@@ -274,7 +122,7 @@
274
122
  },
275
123
  {
276
124
  "file": "packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts",
277
- "hash": "511473937149422354"
125
+ "hash": "2447857140617715507"
278
126
  },
279
127
  {
280
128
  "file": "packages/matchers/e2e/specs/BrowserContext/hooks/after/mobile.hook.ts",
@@ -444,6 +292,170 @@
444
292
  "file": "packages/matchers/e2e/specs/EnvironmentConfig/suite.md",
445
293
  "hash": "2736763753819703752"
446
294
  }
295
+ ],
296
+ "playground-e2e": [
297
+ {
298
+ "file": "packages/playground/e2e/project.json",
299
+ "hash": "7483436778468358608"
300
+ },
301
+ {
302
+ "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/mobile.test.ts",
303
+ "hash": "4890867782031227471"
304
+ },
305
+ {
306
+ "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/spec.md",
307
+ "hash": "1594899313611085372"
308
+ },
309
+ {
310
+ "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts",
311
+ "hash": "1983735092902158167"
312
+ },
313
+ {
314
+ "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/mobile.test.ts",
315
+ "hash": "11975331038121344625"
316
+ },
317
+ {
318
+ "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/spec.md",
319
+ "hash": "12190577339537127331"
320
+ },
321
+ {
322
+ "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts",
323
+ "hash": "12887248939991345892"
324
+ },
325
+ {
326
+ "file": "packages/playground/e2e/specs/Playground/TC-0003-file-upload/web.test.ts",
327
+ "hash": "2171060877539127244"
328
+ },
329
+ {
330
+ "file": "packages/playground/e2e/specs/Playground/hooks/after/mobile.hook.ts",
331
+ "hash": "14051783072589214011"
332
+ },
333
+ {
334
+ "file": "packages/playground/e2e/specs/Playground/hooks/after/web.hook.ts",
335
+ "hash": "14051783072589214011"
336
+ },
337
+ {
338
+ "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/mobile.hook.ts",
339
+ "hash": "14051783072589214011"
340
+ },
341
+ {
342
+ "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/web.hook.ts",
343
+ "hash": "14051783072589214011"
344
+ },
345
+ {
346
+ "file": "packages/playground/e2e/specs/Playground/hooks/before/mobile.hook.ts",
347
+ "hash": "14051783072589214011"
348
+ },
349
+ {
350
+ "file": "packages/playground/e2e/specs/Playground/hooks/before/web.hook.ts",
351
+ "hash": "14051783072589214011"
352
+ },
353
+ {
354
+ "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/mobile.hook.ts",
355
+ "hash": "14051783072589214011"
356
+ },
357
+ {
358
+ "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/web.hook.ts",
359
+ "hash": "14051783072589214011"
360
+ },
361
+ {
362
+ "file": "packages/playground/e2e/specs/Playground/suite.md",
363
+ "hash": "17750886301217575279"
364
+ }
365
+ ],
366
+ "shared-testing": [
367
+ {
368
+ "file": "shared/testing/fixtures/apiData.json",
369
+ "hash": "5455579627617620587"
370
+ },
371
+ {
372
+ "file": "shared/testing/fixtures/playgroundData.json",
373
+ "hash": "6646110001933817841"
374
+ },
375
+ {
376
+ "file": "shared/testing/fixtures/sampleDocument.pdf",
377
+ "hash": "11412192494237969663"
378
+ },
379
+ {
380
+ "file": "shared/testing/fixtures/sampleImage.png",
381
+ "hash": "3806291720214506394"
382
+ },
383
+ {
384
+ "file": "shared/testing/global-hooks/after/mobile.hook.ts",
385
+ "hash": "17704300444638893067"
386
+ },
387
+ {
388
+ "file": "shared/testing/global-hooks/after/web.hook.ts",
389
+ "hash": "4319467857538977176"
390
+ },
391
+ {
392
+ "file": "shared/testing/global-hooks/before/mobile.hook.ts",
393
+ "hash": "1418831585755647488"
394
+ },
395
+ {
396
+ "file": "shared/testing/global-hooks/before/web.hook.ts",
397
+ "hash": "5655415662119179755"
398
+ },
399
+ {
400
+ "file": "shared/testing/page-objects/MatchersPage/mobile.ts",
401
+ "hash": "5942057231213120116"
402
+ },
403
+ {
404
+ "file": "shared/testing/page-objects/MatchersPage/web.ts",
405
+ "hash": "6708715830774655929"
406
+ },
407
+ {
408
+ "file": "shared/testing/page-objects/NavigationPage/mobile.ts",
409
+ "hash": "9843815020701207652"
410
+ },
411
+ {
412
+ "file": "shared/testing/page-objects/NavigationPage/web.ts",
413
+ "hash": "2341250336288762399"
414
+ },
415
+ {
416
+ "file": "shared/testing/page-objects/PlaygroundPage/mobile.ts",
417
+ "hash": "14686244320824687822"
418
+ },
419
+ {
420
+ "file": "shared/testing/page-objects/PlaygroundPage/web.ts",
421
+ "hash": "13184242993928833472"
422
+ },
423
+ {
424
+ "file": "shared/testing/project.json",
425
+ "hash": "7371378800661206349"
426
+ },
427
+ {
428
+ "file": "shared/testing/support/actions/fillCredentials/mobile.action.ts",
429
+ "hash": "12211081252127526235"
430
+ },
431
+ {
432
+ "file": "shared/testing/support/actions/fillCredentials/web.action.ts",
433
+ "hash": "9993357721307207213"
434
+ },
435
+ {
436
+ "file": "shared/testing/support/steps/togglePlaygroundStates/mobile.step.ts",
437
+ "hash": "2440504136325471241"
438
+ },
439
+ {
440
+ "file": "shared/testing/support/steps/togglePlaygroundStates/step.md",
441
+ "hash": "7033246481886462733"
442
+ },
443
+ {
444
+ "file": "shared/testing/support/steps/togglePlaygroundStates/web.step.ts",
445
+ "hash": "3684774997705487691"
446
+ },
447
+ {
448
+ "file": "shared/testing/support/steps/verifyPlaygroundState/mobile.step.ts",
449
+ "hash": "7780197038828149329"
450
+ },
451
+ {
452
+ "file": "shared/testing/support/steps/verifyPlaygroundState/step.md",
453
+ "hash": "4808698815589956784"
454
+ },
455
+ {
456
+ "file": "shared/testing/support/steps/verifyPlaygroundState/web.step.ts",
457
+ "hash": "7710645189151727546"
458
+ }
447
459
  ]
448
460
  }
449
461
  }
@@ -1 +1 @@
1
- 10768379145142504764
1
+ 13554943208068884806