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