@testspectra/cli 1.1.11-rc.5 → 1.1.13

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 (92) 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 +8 -7
  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/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
  61. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  62. package/templates/nx/.nx/workspace-data/d/daemon.log +7104 -1012
  63. package/templates/nx/.nx/workspace-data/d/server-process.json +3 -0
  64. package/templates/nx/.nx/workspace-data/file-map.json +116 -104
  65. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  66. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  67. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +81 -130
  68. package/templates/nx/.nx/workspace-data/project-graph.json +83 -138
  69. package/templates/nx/package.json +2 -2
  70. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +1 -1
  71. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0003-file-upload/web.test.ts +11 -0
  72. package/templates/nx/shared/testing/fixtures/sampleDocument.pdf +14 -0
  73. package/templates/nx/shared/testing/fixtures/sampleImage.png +0 -0
  74. package/templates/nx/shared/testing/page-objects/MatchersPage/mobile.ts +68 -26
  75. package/templates/nx/shared/testing/page-objects/PlaygroundPage/mobile.ts +39 -17
  76. package/templates/nx/shared/testing/page-objects/PlaygroundPage/web.ts +2 -0
  77. package/templates/nx/spectra.config.ts +3 -3
  78. package/templates/react-component/fixtures/sampleDocument.pdf +14 -0
  79. package/templates/react-component/fixtures/sampleImage.png +0 -0
  80. package/templates/react-component/package.json +3 -3
  81. package/templates/react-component/page-objects/FileUploadComponent/web.ts +15 -0
  82. package/templates/react-component/specs/FileUploadComponent/TC-0001-upload-fixtures/web.test.tsx +18 -0
  83. package/templates/react-component/specs/UserListComponent/TC-0001-intercepted-user-list/spec.md +20 -0
  84. package/templates/react-component/specs/UserListComponent/TC-0001-intercepted-user-list/web.test.tsx +15 -0
  85. package/templates/react-component/specs/UserListComponent/suite.md +12 -0
  86. package/templates/react-component/src/components/FileUpload/FileUpload.tsx +44 -0
  87. package/templates/react-component/src/components/UserList/UserList.tsx +48 -0
  88. package/bin/.testspectra-runner.hash +0 -1
  89. package/demo-app/assets/index-BhlW-eXG.css +0 -1
  90. package/demo-app/assets/index-DOtRypCa.js +0 -154
  91. package/dist/commands/__tests__/doctor-scope.test.js +0 -24
  92. /package/dist/{commands/__tests__/doctor-scope.test.d.ts → lifecycle/__tests__/lifecycle-engine.test.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "processId": 711
3
+ }
@@ -6,133 +6,47 @@
6
6
  "fileMap": {
7
7
  "nonProjectFiles": [
8
8
  {
9
- "file": "nx.json",
10
- "hash": "2058784385052146326"
9
+ "file": ".cursorrules",
10
+ "hash": "5914400097935294858"
11
11
  },
12
12
  {
13
- "file": "pnpm-workspace.yaml",
14
- "hash": "11062973401223444734"
13
+ "file": ".gitignore",
14
+ "hash": "1731686672878252345"
15
15
  },
16
16
  {
17
17
  "file": ".vscode/extensions.json",
18
18
  "hash": "6496079274348496909"
19
19
  },
20
+ {
21
+ "file": "CLAUDE.md",
22
+ "hash": "9577234870771110688"
23
+ },
24
+ {
25
+ "file": "nx.json",
26
+ "hash": "2058784385052146326"
27
+ },
20
28
  {
21
29
  "file": "package.json",
22
30
  "hash": "3499066280807669204"
23
31
  },
24
32
  {
25
- "file": ".gitignore",
26
- "hash": "1731686672878252345"
33
+ "file": "pnpm-lock.yaml",
34
+ "hash": "10112233838185913654"
27
35
  },
28
36
  {
29
- "file": "pnpm-lock.yaml",
30
- "hash": "5459540818199025768"
37
+ "file": "pnpm-workspace.yaml",
38
+ "hash": "11062973401223444734"
31
39
  },
32
40
  {
33
41
  "file": "spectra.config.ts",
34
- "hash": "5826567216431235375"
42
+ "hash": "10943132076339511105"
35
43
  },
36
44
  {
37
45
  "file": "tsconfig.json",
38
46
  "hash": "8890589832440448254"
39
- },
40
- {
41
- "file": ".cursorrules",
42
- "hash": "5914400097935294858"
43
- },
44
- {
45
- "file": "CLAUDE.md",
46
- "hash": "9577234870771110688"
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
50
  "playground-e2e": [
137
51
  {
138
52
  "file": "packages/playground/e2e/project.json",
@@ -162,6 +76,10 @@
162
76
  "file": "packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts",
163
77
  "hash": "12887248939991345892"
164
78
  },
79
+ {
80
+ "file": "packages/playground/e2e/specs/Playground/TC-0003-file-upload/web.test.ts",
81
+ "hash": "2171060877539127244"
82
+ },
165
83
  {
166
84
  "file": "packages/playground/e2e/specs/Playground/hooks/after/mobile.hook.ts",
167
85
  "hash": "14051783072589214011"
@@ -274,7 +192,7 @@
274
192
  },
275
193
  {
276
194
  "file": "packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts",
277
- "hash": "511473937149422354"
195
+ "hash": "2447857140617715507"
278
196
  },
279
197
  {
280
198
  "file": "packages/matchers/e2e/specs/BrowserContext/hooks/after/mobile.hook.ts",
@@ -444,6 +362,100 @@
444
362
  "file": "packages/matchers/e2e/specs/EnvironmentConfig/suite.md",
445
363
  "hash": "2736763753819703752"
446
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