@testspectra/cli 1.1.8-rc.25 → 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 (58) hide show
  1. package/dist/commands/__tests__/doctor-filter.test.js +37 -0
  2. package/dist/commands/__tests__/doctor-scope.test.js +24 -0
  3. package/dist/commands/__tests__/test-error-streaming.test.d.ts +1 -0
  4. package/dist/commands/__tests__/test-error-streaming.test.js +52 -0
  5. package/dist/commands/__tests__/test-scaffolding.test.d.ts +1 -0
  6. package/dist/commands/__tests__/test-scaffolding.test.js +32 -0
  7. package/dist/commands/__tests__/upgrade.test.d.ts +1 -0
  8. package/dist/commands/__tests__/upgrade.test.js +95 -0
  9. package/dist/commands/add.js +3 -3
  10. package/dist/commands/doctor.d.ts +9 -1
  11. package/dist/commands/doctor.js +16 -3
  12. package/dist/commands/install.js +3 -0
  13. package/dist/commands/test.d.ts +13 -0
  14. package/dist/commands/test.js +114 -22
  15. package/dist/commands/upgrade.d.ts +8 -1
  16. package/dist/commands/upgrade.js +55 -7
  17. package/dist/index.js +29 -14
  18. package/dist/linter/discovery.js +2 -2
  19. package/dist/linter/schemas/spec.schema.d.ts +6 -6
  20. package/dist/runner/bridge.d.ts +1 -1
  21. package/dist/runner/bridge.js +42 -14
  22. package/dist/runner/reporter.js +11 -3
  23. package/dist/utils/background-update-check.js +0 -7
  24. package/dist/utils/dependency-updates.d.ts +15 -0
  25. package/dist/utils/dependency-updates.js +107 -0
  26. package/package.json +7 -7
  27. package/templates/default/package.json +2 -2
  28. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db +0 -0
  29. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
  30. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  31. package/templates/nx/.nx/workspace-data/d/daemon.log +983 -1162
  32. package/templates/nx/.nx/workspace-data/d/server-process.json +1 -1
  33. package/templates/nx/.nx/workspace-data/file-map.json +103 -117
  34. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  35. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  36. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +6497 -1
  37. package/templates/nx/.nx/workspace-data/project-graph.json +7247 -2
  38. package/templates/nx/.nx/workspace-data/source-maps.json +336 -0
  39. package/templates/nx/package.json +2 -2
  40. package/templates/react-component/package.json +3 -3
  41. package/templates/react-component/spectra.config.ts +0 -10
  42. package/dist/.tsbuildinfo +0 -1
  43. package/dist/commands/__tests__/cloud-run.test.js +0 -93
  44. package/dist/commands/cloud-run.d.ts +0 -13
  45. package/dist/commands/cloud-run.js +0 -120
  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/commands/__tests__/{cloud-run.test.d.ts → doctor-filter.test.d.ts} +0 -0
  58. /package/dist/{lifecycle/__tests__/lifecycle-engine.test.d.ts → commands/__tests__/doctor-scope.test.d.ts} +0 -0
@@ -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.25",
16
- "@testspectra/matchers": "^1.1.8-rc.25",
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.25",
18
- "@testspectra/matchers": "^1.1.8-rc.25",
19
- "@testspectra/react": "^1.1.8-rc.25",
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
  });