@testspectra/cli 1.1.8-rc.24 → 1.1.8-rc.28

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 (57) hide show
  1. package/README.md +11 -8
  2. package/bin/.testspectra-runner.hash +1 -0
  3. package/dist/commands/__tests__/doctor-filter.test.js +37 -0
  4. package/dist/commands/__tests__/doctor-scope.test.d.ts +1 -0
  5. package/dist/commands/__tests__/doctor-scope.test.js +24 -0
  6. package/dist/commands/__tests__/test-error-streaming.test.d.ts +1 -0
  7. package/dist/commands/__tests__/test-error-streaming.test.js +52 -0
  8. package/dist/commands/__tests__/test-scaffolding.test.d.ts +1 -0
  9. package/dist/commands/__tests__/test-scaffolding.test.js +32 -0
  10. package/dist/commands/__tests__/upgrade.test.d.ts +1 -0
  11. package/dist/commands/__tests__/upgrade.test.js +95 -0
  12. package/dist/commands/add.js +3 -3
  13. package/dist/commands/doctor.d.ts +9 -1
  14. package/dist/commands/doctor.js +16 -3
  15. package/dist/commands/install.js +3 -0
  16. package/dist/commands/test.d.ts +13 -0
  17. package/dist/commands/test.js +114 -22
  18. package/dist/commands/upgrade.d.ts +8 -1
  19. package/dist/commands/upgrade.js +63 -13
  20. package/dist/generator/architecture-doc-generator.js +1 -3
  21. package/dist/index.js +30 -15
  22. package/dist/linter/discovery.js +2 -2
  23. package/dist/linter/schemas/spec.schema.d.ts +6 -6
  24. package/dist/runner/bridge.d.ts +1 -1
  25. package/dist/runner/bridge.js +45 -16
  26. package/dist/runner/reporter.js +11 -3
  27. package/dist/utils/background-update-check.js +1 -8
  28. package/dist/utils/dependency-updates.d.ts +15 -0
  29. package/dist/utils/dependency-updates.js +107 -0
  30. package/package.json +8 -9
  31. package/templates/default/package.json +2 -2
  32. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db +0 -0
  33. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
  34. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  35. package/templates/nx/.nx/workspace-data/d/daemon.log +983 -6269
  36. package/templates/nx/.nx/workspace-data/d/server-process.json +3 -0
  37. package/templates/nx/.nx/workspace-data/file-map.json +20 -34
  38. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  39. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  40. package/templates/nx/.nx/workspace-data/project-graph.json +3 -1
  41. package/templates/nx/.nx/workspace-data/source-maps.json +336 -0
  42. package/templates/nx/package.json +2 -2
  43. package/templates/react-component/package.json +3 -3
  44. package/templates/react-component/spectra.config.ts +0 -10
  45. package/dist/.tsbuildinfo +0 -1
  46. package/dist/commands/update.d.ts +0 -3
  47. package/dist/commands/update.js +0 -109
  48. package/dist/lifecycle/__tests__/lifecycle-engine.test.js +0 -290
  49. package/dist/lifecycle/hook-discovery.d.ts +0 -24
  50. package/dist/lifecycle/hook-discovery.js +0 -60
  51. package/dist/lifecycle/hook-dispatcher.d.ts +0 -34
  52. package/dist/lifecycle/hook-dispatcher.js +0 -190
  53. package/dist/lifecycle/index.d.ts +0 -3
  54. package/dist/lifecycle/index.js +0 -3
  55. package/dist/lifecycle/parallel-grouping.d.ts +0 -27
  56. package/dist/lifecycle/parallel-grouping.js +0 -151
  57. /package/dist/{lifecycle/__tests__/lifecycle-engine.test.d.ts → commands/__tests__/doctor-filter.test.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "processId": 55090
3
+ }
@@ -1,63 +1,49 @@
1
1
  {
2
2
  "version": "6.0",
3
- "nxVersion": "19.8.4",
4
- "deps": {
5
- "@testspectra/cli": "link:../..",
6
- "@testspectra/matchers": "link:../../../tools/matchers",
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": "pnpm-lock.yaml",
24
- "hash": "5459540818199025768"
9
+ "file": "spectra.config.ts",
10
+ "hash": "5826567216431235375"
25
11
  },
26
12
  {
27
- "file": ".vscode/extensions.json",
28
- "hash": "6496079274348496909"
13
+ "file": ".gitignore",
14
+ "hash": "1731686672878252345"
29
15
  },
30
16
  {
31
- "file": "spectra.config.ts",
32
- "hash": "5826567216431235375"
17
+ "file": "tsconfig.json",
18
+ "hash": "8890589832440448254"
33
19
  },
34
20
  {
35
- "file": ".cursorrules",
36
- "hash": "5914400097935294858"
21
+ "file": "pnpm-lock.yaml",
22
+ "hash": "5459540818199025768"
37
23
  },
38
24
  {
39
- "file": ".gitignore",
40
- "hash": "1731686672878252345"
25
+ "file": ".vscode/extensions.json",
26
+ "hash": "6496079274348496909"
27
+ },
28
+ {
29
+ "file": "CLAUDE.md",
30
+ "hash": "9577234870771110688"
41
31
  },
42
32
  {
43
33
  "file": "pnpm-workspace.yaml",
44
34
  "hash": "11062973401223444734"
45
35
  },
36
+ {
37
+ "file": ".cursorrules",
38
+ "hash": "5914400097935294858"
39
+ },
46
40
  {
47
41
  "file": "nx.json",
48
42
  "hash": "2058784385052146326"
49
43
  },
50
44
  {
51
45
  "file": "package.json",
52
- "hash": "18300246505550579403"
53
- },
54
- {
55
- "file": "tsconfig.json",
56
- "hash": "8890589832440448254"
57
- },
58
- {
59
- "file": "CLAUDE.md",
60
- "hash": "9577234870771110688"
46
+ "hash": "792275621347980941"
61
47
  }
62
48
  ],
63
49
  "projectFileMap": {
@@ -1 +1 @@
1
- 570877138422518711
1
+ 10768379145142504764
@@ -14384,5 +14384,7 @@
14384
14384
  }
14385
14385
  ]
14386
14386
  },
14387
- "version": "6.0"
14387
+ "version": "6.0",
14388
+ "errors": [],
14389
+ "computedAt": 1789677558614
14388
14390
  }
@@ -0,0 +1,336 @@
1
+ {
2
+ "packages/matchers/e2e": {
3
+ "root": [
4
+ "packages/matchers/e2e/project.json",
5
+ "nx/core/project-json"
6
+ ],
7
+ "name": [
8
+ "packages/matchers/e2e/project.json",
9
+ "nx/core/project-json"
10
+ ],
11
+ "$schema": [
12
+ "packages/matchers/e2e/project.json",
13
+ "nx/core/project-json"
14
+ ],
15
+ "projectType": [
16
+ "packages/matchers/e2e/project.json",
17
+ "nx/core/project-json"
18
+ ],
19
+ "sourceRoot": [
20
+ "packages/matchers/e2e/project.json",
21
+ "nx/core/project-json"
22
+ ],
23
+ "tags": [
24
+ "packages/matchers/e2e/project.json",
25
+ "nx/core/project-json"
26
+ ],
27
+ "tags.testspectra:e2e": [
28
+ "packages/matchers/e2e/project.json",
29
+ "nx/core/project-json"
30
+ ],
31
+ "tags.testspectra:scope:matchers": [
32
+ "packages/matchers/e2e/project.json",
33
+ "nx/core/project-json"
34
+ ],
35
+ "targets": [
36
+ "packages/matchers/e2e/project.json",
37
+ "nx/core/project-json"
38
+ ],
39
+ "targets.e2e": [
40
+ "packages/matchers/e2e/project.json",
41
+ "nx/core/project-json"
42
+ ],
43
+ "targets.e2e.executor": [
44
+ "packages/matchers/e2e/project.json",
45
+ "nx/core/project-json"
46
+ ],
47
+ "targets.e2e.options": [
48
+ "packages/matchers/e2e/project.json",
49
+ "nx/core/project-json"
50
+ ],
51
+ "targets.e2e.configurations": [
52
+ "packages/matchers/e2e/project.json",
53
+ "nx/core/project-json"
54
+ ],
55
+ "targets.e2e.options.command": [
56
+ "packages/matchers/e2e/project.json",
57
+ "nx/core/project-json"
58
+ ],
59
+ "targets.e2e.options.cwd": [
60
+ "packages/matchers/e2e/project.json",
61
+ "nx/core/project-json"
62
+ ],
63
+ "targets.e2e.configurations.android": [
64
+ "packages/matchers/e2e/project.json",
65
+ "nx/core/project-json"
66
+ ],
67
+ "targets.e2e.configurations.android.command": [
68
+ "packages/matchers/e2e/project.json",
69
+ "nx/core/project-json"
70
+ ],
71
+ "targets.e2e.configurations.ios": [
72
+ "packages/matchers/e2e/project.json",
73
+ "nx/core/project-json"
74
+ ],
75
+ "targets.e2e.configurations.ios.command": [
76
+ "packages/matchers/e2e/project.json",
77
+ "nx/core/project-json"
78
+ ],
79
+ "targets.e2e.configurations.headless": [
80
+ "packages/matchers/e2e/project.json",
81
+ "nx/core/project-json"
82
+ ],
83
+ "targets.e2e.configurations.headless.command": [
84
+ "packages/matchers/e2e/project.json",
85
+ "nx/core/project-json"
86
+ ],
87
+ "targets.type-check": [
88
+ "packages/matchers/e2e/project.json",
89
+ "nx/core/project-json"
90
+ ],
91
+ "targets.type-check.executor": [
92
+ "packages/matchers/e2e/project.json",
93
+ "nx/core/project-json"
94
+ ],
95
+ "targets.type-check.options": [
96
+ "packages/matchers/e2e/project.json",
97
+ "nx/core/project-json"
98
+ ],
99
+ "targets.type-check.options.command": [
100
+ "packages/matchers/e2e/project.json",
101
+ "nx/core/project-json"
102
+ ],
103
+ "targets.type-check.options.cwd": [
104
+ "packages/matchers/e2e/project.json",
105
+ "nx/core/project-json"
106
+ ],
107
+ "targets.e2e.cache": [
108
+ "nx.json",
109
+ "nx/target-defaults"
110
+ ],
111
+ "targets.e2e.inputs": [
112
+ "nx.json",
113
+ "nx/target-defaults"
114
+ ],
115
+ "targets.e2e.dependsOn": [
116
+ "nx.json",
117
+ "nx/target-defaults"
118
+ ],
119
+ "targets.e2e.parallelism": [
120
+ "nx.json",
121
+ "nx/target-defaults"
122
+ ],
123
+ "targets.type-check.cache": [
124
+ "nx.json",
125
+ "nx/target-defaults"
126
+ ],
127
+ "targets.type-check.inputs": [
128
+ "nx.json",
129
+ "nx/target-defaults"
130
+ ],
131
+ "targets.type-check.parallelism": [
132
+ "nx.json",
133
+ "nx/target-defaults"
134
+ ]
135
+ },
136
+ "packages/playground/e2e": {
137
+ "root": [
138
+ "packages/playground/e2e/project.json",
139
+ "nx/core/project-json"
140
+ ],
141
+ "name": [
142
+ "packages/playground/e2e/project.json",
143
+ "nx/core/project-json"
144
+ ],
145
+ "$schema": [
146
+ "packages/playground/e2e/project.json",
147
+ "nx/core/project-json"
148
+ ],
149
+ "projectType": [
150
+ "packages/playground/e2e/project.json",
151
+ "nx/core/project-json"
152
+ ],
153
+ "sourceRoot": [
154
+ "packages/playground/e2e/project.json",
155
+ "nx/core/project-json"
156
+ ],
157
+ "tags": [
158
+ "packages/playground/e2e/project.json",
159
+ "nx/core/project-json"
160
+ ],
161
+ "tags.testspectra:e2e": [
162
+ "packages/playground/e2e/project.json",
163
+ "nx/core/project-json"
164
+ ],
165
+ "tags.testspectra:scope:playground": [
166
+ "packages/playground/e2e/project.json",
167
+ "nx/core/project-json"
168
+ ],
169
+ "targets": [
170
+ "packages/playground/e2e/project.json",
171
+ "nx/core/project-json"
172
+ ],
173
+ "targets.e2e": [
174
+ "packages/playground/e2e/project.json",
175
+ "nx/core/project-json"
176
+ ],
177
+ "targets.e2e.executor": [
178
+ "packages/playground/e2e/project.json",
179
+ "nx/core/project-json"
180
+ ],
181
+ "targets.e2e.options": [
182
+ "packages/playground/e2e/project.json",
183
+ "nx/core/project-json"
184
+ ],
185
+ "targets.e2e.configurations": [
186
+ "packages/playground/e2e/project.json",
187
+ "nx/core/project-json"
188
+ ],
189
+ "targets.e2e.options.command": [
190
+ "packages/playground/e2e/project.json",
191
+ "nx/core/project-json"
192
+ ],
193
+ "targets.e2e.options.cwd": [
194
+ "packages/playground/e2e/project.json",
195
+ "nx/core/project-json"
196
+ ],
197
+ "targets.e2e.configurations.android": [
198
+ "packages/playground/e2e/project.json",
199
+ "nx/core/project-json"
200
+ ],
201
+ "targets.e2e.configurations.android.command": [
202
+ "packages/playground/e2e/project.json",
203
+ "nx/core/project-json"
204
+ ],
205
+ "targets.e2e.configurations.ios": [
206
+ "packages/playground/e2e/project.json",
207
+ "nx/core/project-json"
208
+ ],
209
+ "targets.e2e.configurations.ios.command": [
210
+ "packages/playground/e2e/project.json",
211
+ "nx/core/project-json"
212
+ ],
213
+ "targets.e2e.configurations.headless": [
214
+ "packages/playground/e2e/project.json",
215
+ "nx/core/project-json"
216
+ ],
217
+ "targets.e2e.configurations.headless.command": [
218
+ "packages/playground/e2e/project.json",
219
+ "nx/core/project-json"
220
+ ],
221
+ "targets.type-check": [
222
+ "packages/playground/e2e/project.json",
223
+ "nx/core/project-json"
224
+ ],
225
+ "targets.type-check.executor": [
226
+ "packages/playground/e2e/project.json",
227
+ "nx/core/project-json"
228
+ ],
229
+ "targets.type-check.options": [
230
+ "packages/playground/e2e/project.json",
231
+ "nx/core/project-json"
232
+ ],
233
+ "targets.type-check.options.command": [
234
+ "packages/playground/e2e/project.json",
235
+ "nx/core/project-json"
236
+ ],
237
+ "targets.type-check.options.cwd": [
238
+ "packages/playground/e2e/project.json",
239
+ "nx/core/project-json"
240
+ ],
241
+ "targets.e2e.cache": [
242
+ "nx.json",
243
+ "nx/target-defaults"
244
+ ],
245
+ "targets.e2e.inputs": [
246
+ "nx.json",
247
+ "nx/target-defaults"
248
+ ],
249
+ "targets.e2e.dependsOn": [
250
+ "nx.json",
251
+ "nx/target-defaults"
252
+ ],
253
+ "targets.e2e.parallelism": [
254
+ "nx.json",
255
+ "nx/target-defaults"
256
+ ],
257
+ "targets.type-check.cache": [
258
+ "nx.json",
259
+ "nx/target-defaults"
260
+ ],
261
+ "targets.type-check.inputs": [
262
+ "nx.json",
263
+ "nx/target-defaults"
264
+ ],
265
+ "targets.type-check.parallelism": [
266
+ "nx.json",
267
+ "nx/target-defaults"
268
+ ]
269
+ },
270
+ "shared/testing": {
271
+ "root": [
272
+ "shared/testing/project.json",
273
+ "nx/core/project-json"
274
+ ],
275
+ "name": [
276
+ "shared/testing/project.json",
277
+ "nx/core/project-json"
278
+ ],
279
+ "$schema": [
280
+ "shared/testing/project.json",
281
+ "nx/core/project-json"
282
+ ],
283
+ "projectType": [
284
+ "shared/testing/project.json",
285
+ "nx/core/project-json"
286
+ ],
287
+ "sourceRoot": [
288
+ "shared/testing/project.json",
289
+ "nx/core/project-json"
290
+ ],
291
+ "tags": [
292
+ "shared/testing/project.json",
293
+ "nx/core/project-json"
294
+ ],
295
+ "tags.testspectra:shared": [
296
+ "shared/testing/project.json",
297
+ "nx/core/project-json"
298
+ ],
299
+ "targets": [
300
+ "shared/testing/project.json",
301
+ "nx/core/project-json"
302
+ ],
303
+ "targets.type-check": [
304
+ "shared/testing/project.json",
305
+ "nx/core/project-json"
306
+ ],
307
+ "targets.type-check.executor": [
308
+ "shared/testing/project.json",
309
+ "nx/core/project-json"
310
+ ],
311
+ "targets.type-check.options": [
312
+ "shared/testing/project.json",
313
+ "nx/core/project-json"
314
+ ],
315
+ "targets.type-check.options.command": [
316
+ "shared/testing/project.json",
317
+ "nx/core/project-json"
318
+ ],
319
+ "targets.type-check.options.cwd": [
320
+ "shared/testing/project.json",
321
+ "nx/core/project-json"
322
+ ],
323
+ "targets.type-check.cache": [
324
+ "nx.json",
325
+ "nx/target-defaults"
326
+ ],
327
+ "targets.type-check.inputs": [
328
+ "nx.json",
329
+ "nx/target-defaults"
330
+ ],
331
+ "targets.type-check.parallelism": [
332
+ "nx.json",
333
+ "nx/target-defaults"
334
+ ]
335
+ }
336
+ }
@@ -12,8 +12,8 @@
12
12
  "postinstall": "spectra sync-types"
13
13
  },
14
14
  "devDependencies": {
15
- "@testspectra/cli": "^1.1.8-rc.24",
16
- "@testspectra/matchers": "^1.1.8-rc.24",
15
+ "@testspectra/cli": "^1.1.8-rc.28",
16
+ "@testspectra/matchers": "^1.1.8-rc.28",
17
17
  "@types/node": "^20.14.0",
18
18
  "@wdio/cli": "^9.2.8",
19
19
  "@wdio/local-runner": "^9.2.8",
@@ -14,9 +14,9 @@
14
14
  "postinstall": "spectra sync-types"
15
15
  },
16
16
  "devDependencies": {
17
- "@testspectra/cli": "^1.1.8-rc.24",
18
- "@testspectra/matchers": "^1.1.8-rc.24",
19
- "@testspectra/react": "^1.1.8-rc.24",
17
+ "@testspectra/cli": "^1.1.8-rc.28",
18
+ "@testspectra/matchers": "^1.1.8-rc.28",
19
+ "@testspectra/react": "^1.1.8-rc.28",
20
20
  "@types/node": "^20.14.0",
21
21
  "@types/react": "^18.3.3",
22
22
  "@types/react-dom": "^18.3.0",
@@ -6,22 +6,12 @@ export default defineConfig({
6
6
  maxConcurrentSessions: "4",
7
7
  headless: true,
8
8
  implicitWait: "5000",
9
- pageLoadTimeout: "30000",
10
- scriptTimeout: "30000",
11
9
  parallelizationMode: "testcase",
12
10
  },
13
- browsers: [
14
- {
15
- id: "chrome-desktop",
16
- type: "chrome",
17
- mobileEmulation: false,
18
- },
19
- ],
20
11
  executionConfig: {
21
12
  networkMonitoringEnabled: true,
22
13
  fastResponseTime: "200",
23
14
  normalResponseTime: "1000",
24
15
  monitoredDomains: [],
25
- environmentVariables: [],
26
16
  },
27
17
  });