@testspectra/cli 1.1.8-rc.8 → 1.1.10

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 (88) hide show
  1. package/README.md +11 -8
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/commands/__tests__/doctor-filter.test.d.ts +1 -0
  4. package/dist/commands/__tests__/doctor-filter.test.js +37 -0
  5. package/dist/commands/__tests__/test-error-streaming.test.d.ts +1 -0
  6. package/dist/commands/__tests__/test-error-streaming.test.js +85 -0
  7. package/dist/commands/__tests__/test-scaffolding.test.d.ts +1 -0
  8. package/dist/commands/__tests__/test-scaffolding.test.js +32 -0
  9. package/dist/commands/__tests__/upgrade.test.d.ts +1 -0
  10. package/dist/commands/__tests__/upgrade.test.js +95 -0
  11. package/dist/commands/add.js +5 -4
  12. package/dist/commands/devices.js +1 -0
  13. package/dist/commands/docs.d.ts +4 -0
  14. package/dist/commands/docs.js +17 -0
  15. package/dist/commands/doctor.d.ts +9 -1
  16. package/dist/commands/doctor.js +17 -3
  17. package/dist/commands/init.js +7 -160
  18. package/dist/commands/install.js +5 -0
  19. package/dist/commands/license.js +1 -0
  20. package/dist/commands/run.d.ts +2 -0
  21. package/dist/commands/run.js +22 -0
  22. package/dist/commands/test.d.ts +13 -0
  23. package/dist/commands/test.js +115 -21
  24. package/dist/commands/upgrade.d.ts +12 -0
  25. package/dist/commands/upgrade.js +197 -0
  26. package/dist/config/schema.d.ts +53 -0
  27. package/dist/config/schema.js +2 -0
  28. package/dist/generator/__tests__/tsconfig-isolation.test.js +2 -1
  29. package/dist/generator/__tests__/type-generator.test.js +38 -0
  30. package/dist/generator/architecture-doc-generator.d.ts +14 -0
  31. package/dist/generator/architecture-doc-generator.js +80 -0
  32. package/dist/generator/index.d.ts +1 -0
  33. package/dist/generator/index.js +1 -0
  34. package/dist/generator/tsconfig-generator.js +1 -1
  35. package/dist/generator/type-generator.d.ts +5 -2
  36. package/dist/generator/type-generator.js +14 -17
  37. package/dist/index.js +59 -16
  38. package/dist/linter/__tests__/shared-lib-boundary.test.js +15 -15
  39. package/dist/linter/discovery.d.ts +3 -3
  40. package/dist/linter/discovery.js +7 -7
  41. package/dist/linter/schemas/spec.schema.d.ts +6 -6
  42. package/dist/runner/bridge.d.ts +1 -1
  43. package/dist/runner/bridge.js +67 -16
  44. package/dist/runner/reporter.d.ts +1 -0
  45. package/dist/runner/reporter.js +12 -6
  46. package/dist/utils/__tests__/dev-server-manager.test.d.ts +1 -0
  47. package/dist/utils/__tests__/dev-server-manager.test.js +72 -0
  48. package/dist/utils/background-update-check.d.ts +1 -0
  49. package/dist/utils/background-update-check.js +43 -0
  50. package/dist/utils/dependency-updates.d.ts +15 -0
  51. package/dist/utils/dependency-updates.js +107 -0
  52. package/dist/utils/dev-server-manager.d.ts +40 -0
  53. package/dist/utils/dev-server-manager.js +257 -0
  54. package/dist/utils/update-notifier.d.ts +2 -0
  55. package/dist/utils/update-notifier.js +67 -0
  56. package/package.json +10 -9
  57. package/templates/default/package.json +2 -2
  58. package/templates/docs/ARCHITECTURE.default.md +26 -0
  59. package/templates/docs/ARCHITECTURE.nx.md +147 -0
  60. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db +0 -0
  61. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
  62. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  63. package/templates/nx/.nx/workspace-data/d/daemon.log +947 -0
  64. package/templates/nx/.nx/workspace-data/d/server-process.json +1 -1
  65. package/templates/nx/.nx/workspace-data/file-map.json +172 -186
  66. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  67. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  68. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +81 -130
  69. package/templates/nx/.nx/workspace-data/project-graph.json +90 -144
  70. package/templates/nx/.nx/workspace-data/source-maps.json +336 -0
  71. package/templates/nx/package.json +3 -3
  72. package/templates/nx/packages/matchers/e2e/project.json +2 -2
  73. package/templates/nx/packages/playground/e2e/project.json +2 -2
  74. package/templates/nx/pnpm-lock.yaml +191 -214
  75. package/templates/nx/shared/testing/project.json +1 -2
  76. package/templates/nx/spectra.config.ts +13 -0
  77. package/templates/react-component/package.json +3 -3
  78. package/templates/react-component/page-objects/BadgeComponent/web.ts +4 -4
  79. package/templates/react-component/page-objects/ButtonComponent/web.ts +3 -3
  80. package/templates/react-component/page-objects/InputComponent/web.ts +1 -1
  81. package/templates/react-component/specs/ButtonComponent/TC-0001-button-rendering-and-click/web.test.tsx +0 -3
  82. package/templates/react-component/specs/ButtonComponent/TC-0004-disabled-button-not-clickable/web.test.tsx +0 -9
  83. package/templates/react-component/specs/ButtonComponent/TC-0005-button-renders-icon/web.test.tsx +1 -1
  84. package/templates/react-component/specs/InputComponent/TC-0003-input-typing-and-clear/web.test.tsx +4 -8
  85. package/templates/react-component/spectra.config.ts +0 -10
  86. package/templates/react-component/src/components/Badge/Badge.tsx +3 -3
  87. package/templates/react-component/src/components/Button/Button.tsx +5 -3
  88. package/templates/react-component/src/components/Input/Input.tsx +2 -3
@@ -1,3 +1,3 @@
1
1
  {
2
- "processId": 55694
2
+ "processId": 94575
3
3
  }
@@ -1,70 +1,208 @@
1
1
  {
2
2
  "version": "6.0",
3
- "nxVersion": "19.8.4",
4
- "deps": {
5
- "@testspectra/cli": "^1.1.8-rc.8",
6
- "@testspectra/matchers": "^1.1.8-rc.8",
7
- "@types/node": "^20.14.0",
8
- "@wdio/cli": "^9.2.8",
9
- "@wdio/local-runner": "^9.2.8",
10
- "@wdio/spec-reporter": "^9.2.8",
11
- "@wdio/devtools-service": "^8.46.0",
12
- "@wdio/globals": "^9.2.8",
13
- "@wdio/mocha-framework": "^9.2.8",
14
- "nx": "19.8.4",
15
- "typescript": "^5.4.5",
16
- "webdriverio": "^9.2.8"
17
- },
3
+ "nxVersion": "20.8.4",
18
4
  "pathMappings": {},
19
5
  "nxJsonPlugins": [],
20
6
  "fileMap": {
21
7
  "nonProjectFiles": [
22
8
  {
23
- "file": "CLAUDE.md",
24
- "hash": "9577234870771110688"
9
+ "file": "pnpm-lock.yaml",
10
+ "hash": "10112233838185913654"
25
11
  },
26
12
  {
27
- "file": "pnpm-workspace.yaml",
28
- "hash": "11062973401223444734"
13
+ "file": "package.json",
14
+ "hash": "13331977210332894682"
29
15
  },
30
16
  {
31
- "file": ".vscode/extensions.json",
32
- "hash": "6496079274348496909"
17
+ "file": "CLAUDE.md",
18
+ "hash": "9577234870771110688"
19
+ },
20
+ {
21
+ "file": "nx.json",
22
+ "hash": "2058784385052146326"
33
23
  },
34
24
  {
35
25
  "file": "tsconfig.json",
36
26
  "hash": "8890589832440448254"
37
27
  },
38
28
  {
39
- "file": "pnpm-lock.yaml",
40
- "hash": "5459540818199025768"
29
+ "file": ".vscode/extensions.json",
30
+ "hash": "6496079274348496909"
41
31
  },
42
32
  {
43
33
  "file": ".cursorrules",
44
34
  "hash": "5914400097935294858"
45
35
  },
46
36
  {
47
- "file": "package.json",
48
- "hash": "14428529227735976885"
49
- },
50
- {
51
- "file": "spectra.config.ts",
52
- "hash": "5826567216431235375"
37
+ "file": ".gitignore",
38
+ "hash": "1731686672878252345"
53
39
  },
54
40
  {
55
- "file": "nx.json",
56
- "hash": "2058784385052146326"
41
+ "file": "pnpm-workspace.yaml",
42
+ "hash": "11062973401223444734"
57
43
  },
58
44
  {
59
- "file": ".gitignore",
60
- "hash": "1731686672878252345"
45
+ "file": "spectra.config.ts",
46
+ "hash": "9751236501107423384"
61
47
  }
62
48
  ],
63
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
+ ],
64
202
  "matchers-e2e": [
65
203
  {
66
204
  "file": "packages/matchers/e2e/project.json",
67
- "hash": "18324501588508262577"
205
+ "hash": "8584556520682172690"
68
206
  },
69
207
  {
70
208
  "file": "packages/matchers/e2e/specs/ApiInterception/TC-0008-fetch-mocking/mobile.test.ts",
@@ -306,158 +444,6 @@
306
444
  "file": "packages/matchers/e2e/specs/EnvironmentConfig/suite.md",
307
445
  "hash": "2736763753819703752"
308
446
  }
309
- ],
310
- "playground-e2e": [
311
- {
312
- "file": "packages/playground/e2e/project.json",
313
- "hash": "6122062871794656679"
314
- },
315
- {
316
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/mobile.test.ts",
317
- "hash": "4890867782031227471"
318
- },
319
- {
320
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/spec.md",
321
- "hash": "1594899313611085372"
322
- },
323
- {
324
- "file": "packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts",
325
- "hash": "1983735092902158167"
326
- },
327
- {
328
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/mobile.test.ts",
329
- "hash": "11975331038121344625"
330
- },
331
- {
332
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/spec.md",
333
- "hash": "12190577339537127331"
334
- },
335
- {
336
- "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts",
337
- "hash": "12887248939991345892"
338
- },
339
- {
340
- "file": "packages/playground/e2e/specs/Playground/hooks/after/mobile.hook.ts",
341
- "hash": "14051783072589214011"
342
- },
343
- {
344
- "file": "packages/playground/e2e/specs/Playground/hooks/after/web.hook.ts",
345
- "hash": "14051783072589214011"
346
- },
347
- {
348
- "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/mobile.hook.ts",
349
- "hash": "14051783072589214011"
350
- },
351
- {
352
- "file": "packages/playground/e2e/specs/Playground/hooks/afterEach/web.hook.ts",
353
- "hash": "14051783072589214011"
354
- },
355
- {
356
- "file": "packages/playground/e2e/specs/Playground/hooks/before/mobile.hook.ts",
357
- "hash": "14051783072589214011"
358
- },
359
- {
360
- "file": "packages/playground/e2e/specs/Playground/hooks/before/web.hook.ts",
361
- "hash": "14051783072589214011"
362
- },
363
- {
364
- "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/mobile.hook.ts",
365
- "hash": "14051783072589214011"
366
- },
367
- {
368
- "file": "packages/playground/e2e/specs/Playground/hooks/beforeEach/web.hook.ts",
369
- "hash": "14051783072589214011"
370
- },
371
- {
372
- "file": "packages/playground/e2e/specs/Playground/suite.md",
373
- "hash": "17750886301217575279"
374
- }
375
- ],
376
- "shared-testing": [
377
- {
378
- "file": "shared/testing/fixtures/apiData.json",
379
- "hash": "5455579627617620587"
380
- },
381
- {
382
- "file": "shared/testing/fixtures/playgroundData.json",
383
- "hash": "6646110001933817841"
384
- },
385
- {
386
- "file": "shared/testing/global-hooks/after/mobile.hook.ts",
387
- "hash": "17704300444638893067"
388
- },
389
- {
390
- "file": "shared/testing/global-hooks/after/web.hook.ts",
391
- "hash": "4319467857538977176"
392
- },
393
- {
394
- "file": "shared/testing/global-hooks/before/mobile.hook.ts",
395
- "hash": "1418831585755647488"
396
- },
397
- {
398
- "file": "shared/testing/global-hooks/before/web.hook.ts",
399
- "hash": "5655415662119179755"
400
- },
401
- {
402
- "file": "shared/testing/page-objects/MatchersPage/mobile.ts",
403
- "hash": "13486007993280160103"
404
- },
405
- {
406
- "file": "shared/testing/page-objects/MatchersPage/web.ts",
407
- "hash": "6708715830774655929"
408
- },
409
- {
410
- "file": "shared/testing/page-objects/NavigationPage/mobile.ts",
411
- "hash": "9843815020701207652"
412
- },
413
- {
414
- "file": "shared/testing/page-objects/NavigationPage/web.ts",
415
- "hash": "2341250336288762399"
416
- },
417
- {
418
- "file": "shared/testing/page-objects/PlaygroundPage/mobile.ts",
419
- "hash": "8192927760362991284"
420
- },
421
- {
422
- "file": "shared/testing/page-objects/PlaygroundPage/web.ts",
423
- "hash": "13289179655405426712"
424
- },
425
- {
426
- "file": "shared/testing/project.json",
427
- "hash": "16067677866830747787"
428
- },
429
- {
430
- "file": "shared/testing/support/actions/fillCredentials/mobile.action.ts",
431
- "hash": "12211081252127526235"
432
- },
433
- {
434
- "file": "shared/testing/support/actions/fillCredentials/web.action.ts",
435
- "hash": "9993357721307207213"
436
- },
437
- {
438
- "file": "shared/testing/support/steps/togglePlaygroundStates/mobile.step.ts",
439
- "hash": "2440504136325471241"
440
- },
441
- {
442
- "file": "shared/testing/support/steps/togglePlaygroundStates/step.md",
443
- "hash": "7033246481886462733"
444
- },
445
- {
446
- "file": "shared/testing/support/steps/togglePlaygroundStates/web.step.ts",
447
- "hash": "3684774997705487691"
448
- },
449
- {
450
- "file": "shared/testing/support/steps/verifyPlaygroundState/mobile.step.ts",
451
- "hash": "7780197038828149329"
452
- },
453
- {
454
- "file": "shared/testing/support/steps/verifyPlaygroundState/step.md",
455
- "hash": "4808698815589956784"
456
- },
457
- {
458
- "file": "shared/testing/support/steps/verifyPlaygroundState/web.step.ts",
459
- "hash": "7710645189151727546"
460
- }
461
447
  ]
462
448
  }
463
449
  }
@@ -1 +1 @@
1
- 570877138422518711
1
+ 13554943208068884806