@testspectra/cli 1.1.8-rc.30 → 1.1.8-rc.31

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 (38) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/commands/run.d.ts +2 -0
  3. package/dist/commands/run.js +22 -0
  4. package/dist/commands/update.d.ts +3 -0
  5. package/dist/commands/update.js +109 -0
  6. package/dist/config/schema.d.ts +53 -0
  7. package/dist/config/schema.js +2 -0
  8. package/dist/index.js +2 -0
  9. package/dist/lifecycle/__tests__/lifecycle-engine.test.js +290 -0
  10. package/dist/lifecycle/hook-discovery.d.ts +24 -0
  11. package/dist/lifecycle/hook-discovery.js +60 -0
  12. package/dist/lifecycle/hook-dispatcher.d.ts +34 -0
  13. package/dist/lifecycle/hook-dispatcher.js +190 -0
  14. package/dist/lifecycle/index.d.ts +3 -0
  15. package/dist/lifecycle/index.js +3 -0
  16. package/dist/lifecycle/parallel-grouping.d.ts +27 -0
  17. package/dist/lifecycle/parallel-grouping.js +151 -0
  18. package/dist/utils/__tests__/dev-server-manager.test.d.ts +1 -0
  19. package/dist/utils/__tests__/dev-server-manager.test.js +72 -0
  20. package/dist/utils/dev-server-manager.d.ts +40 -0
  21. package/dist/utils/dev-server-manager.js +257 -0
  22. package/package.json +9 -7
  23. package/templates/default/package.json +2 -2
  24. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db +0 -0
  25. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
  26. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  27. package/templates/nx/.nx/workspace-data/d/daemon.log +6343 -1012
  28. package/templates/nx/.nx/workspace-data/d/server-process.json +3 -0
  29. package/templates/nx/.nx/workspace-data/file-map.json +168 -168
  30. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  31. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +31 -31
  32. package/templates/nx/.nx/workspace-data/project-graph.json +33 -33
  33. package/templates/nx/package.json +2 -2
  34. package/templates/nx/spectra.config.ts +13 -0
  35. package/templates/react-component/package.json +3 -3
  36. package/bin/.testspectra-runner.hash +0 -1
  37. package/dist/commands/__tests__/doctor-scope.test.js +0 -24
  38. /package/dist/{commands/__tests__/doctor-scope.test.d.ts → lifecycle/__tests__/lifecycle-engine.test.d.ts} +0 -0
@@ -6820,9 +6820,9 @@
6820
6820
  "hash": "sha512-SyrSVpygEdPzvgpapVZRQCy8XIOecadp56bPQewpfSfo9ypB6wdOUkx13NBu2ANDlUAtJX7KaLJpTtywVHNlVw=="
6821
6821
  }
6822
6822
  },
6823
- "npm:webdriverio": {
6823
+ "npm:webdriverio@9.31.6": {
6824
6824
  "type": "npm",
6825
- "name": "npm:webdriverio",
6825
+ "name": "npm:webdriverio@9.31.6",
6826
6826
  "data": {
6827
6827
  "version": "9.31.6",
6828
6828
  "packageName": "webdriverio",
@@ -8313,7 +8313,7 @@
8313
8313
  },
8314
8314
  {
8315
8315
  "source": "npm:@wdio/cli",
8316
- "target": "npm:webdriverio",
8316
+ "target": "npm:webdriverio@9.31.6",
8317
8317
  "type": "static"
8318
8318
  },
8319
8319
  {
@@ -8488,7 +8488,7 @@
8488
8488
  },
8489
8489
  {
8490
8490
  "source": "npm:@wdio/globals",
8491
- "target": "npm:webdriverio",
8491
+ "target": "npm:webdriverio@9.31.6",
8492
8492
  "type": "static"
8493
8493
  }
8494
8494
  ],
@@ -8719,7 +8719,7 @@
8719
8719
  },
8720
8720
  {
8721
8721
  "source": "npm:@wdio/runner",
8722
- "target": "npm:webdriverio",
8722
+ "target": "npm:webdriverio@9.31.6",
8723
8723
  "type": "static"
8724
8724
  }
8725
8725
  ],
@@ -10455,7 +10455,7 @@
10455
10455
  },
10456
10456
  {
10457
10457
  "source": "npm:expect-webdriverio",
10458
- "target": "npm:webdriverio",
10458
+ "target": "npm:webdriverio@9.31.6",
10459
10459
  "type": "static"
10460
10460
  }
10461
10461
  ],
@@ -13957,129 +13957,129 @@
13957
13957
  "type": "static"
13958
13958
  }
13959
13959
  ],
13960
- "npm:webdriverio": [
13960
+ "npm:webdriverio@9.31.6": [
13961
13961
  {
13962
- "source": "npm:webdriverio",
13962
+ "source": "npm:webdriverio@9.31.6",
13963
13963
  "target": "npm:@types/node",
13964
13964
  "type": "static"
13965
13965
  },
13966
13966
  {
13967
- "source": "npm:webdriverio",
13967
+ "source": "npm:webdriverio@9.31.6",
13968
13968
  "target": "npm:@types/sinonjs__fake-timers",
13969
13969
  "type": "static"
13970
13970
  },
13971
13971
  {
13972
- "source": "npm:webdriverio",
13972
+ "source": "npm:webdriverio@9.31.6",
13973
13973
  "target": "npm:@wdio/config@9.31.6",
13974
13974
  "type": "static"
13975
13975
  },
13976
13976
  {
13977
- "source": "npm:webdriverio",
13977
+ "source": "npm:webdriverio@9.31.6",
13978
13978
  "target": "npm:@wdio/logger@9.29.1",
13979
13979
  "type": "static"
13980
13980
  },
13981
13981
  {
13982
- "source": "npm:webdriverio",
13982
+ "source": "npm:webdriverio@9.31.6",
13983
13983
  "target": "npm:@wdio/protocols@9.31.5",
13984
13984
  "type": "static"
13985
13985
  },
13986
13986
  {
13987
- "source": "npm:webdriverio",
13987
+ "source": "npm:webdriverio@9.31.6",
13988
13988
  "target": "npm:@wdio/repl@9.16.2",
13989
13989
  "type": "static"
13990
13990
  },
13991
13991
  {
13992
- "source": "npm:webdriverio",
13992
+ "source": "npm:webdriverio@9.31.6",
13993
13993
  "target": "npm:@wdio/types@9.31.2",
13994
13994
  "type": "static"
13995
13995
  },
13996
13996
  {
13997
- "source": "npm:webdriverio",
13997
+ "source": "npm:webdriverio@9.31.6",
13998
13998
  "target": "npm:@wdio/utils@9.31.6",
13999
13999
  "type": "static"
14000
14000
  },
14001
14001
  {
14002
- "source": "npm:webdriverio",
14002
+ "source": "npm:webdriverio@9.31.6",
14003
14003
  "target": "npm:archiver",
14004
14004
  "type": "static"
14005
14005
  },
14006
14006
  {
14007
- "source": "npm:webdriverio",
14007
+ "source": "npm:webdriverio@9.31.6",
14008
14008
  "target": "npm:aria-query",
14009
14009
  "type": "static"
14010
14010
  },
14011
14011
  {
14012
- "source": "npm:webdriverio",
14012
+ "source": "npm:webdriverio@9.31.6",
14013
14013
  "target": "npm:cheerio",
14014
14014
  "type": "static"
14015
14015
  },
14016
14016
  {
14017
- "source": "npm:webdriverio",
14017
+ "source": "npm:webdriverio@9.31.6",
14018
14018
  "target": "npm:css-shorthand-properties",
14019
14019
  "type": "static"
14020
14020
  },
14021
14021
  {
14022
- "source": "npm:webdriverio",
14022
+ "source": "npm:webdriverio@9.31.6",
14023
14023
  "target": "npm:css-value",
14024
14024
  "type": "static"
14025
14025
  },
14026
14026
  {
14027
- "source": "npm:webdriverio",
14027
+ "source": "npm:webdriverio@9.31.6",
14028
14028
  "target": "npm:grapheme-splitter",
14029
14029
  "type": "static"
14030
14030
  },
14031
14031
  {
14032
- "source": "npm:webdriverio",
14032
+ "source": "npm:webdriverio@9.31.6",
14033
14033
  "target": "npm:htmlfy",
14034
14034
  "type": "static"
14035
14035
  },
14036
14036
  {
14037
- "source": "npm:webdriverio",
14037
+ "source": "npm:webdriverio@9.31.6",
14038
14038
  "target": "npm:is-plain-obj@4.1.0",
14039
14039
  "type": "static"
14040
14040
  },
14041
14041
  {
14042
- "source": "npm:webdriverio",
14042
+ "source": "npm:webdriverio@9.31.6",
14043
14043
  "target": "npm:jszip",
14044
14044
  "type": "static"
14045
14045
  },
14046
14046
  {
14047
- "source": "npm:webdriverio",
14047
+ "source": "npm:webdriverio@9.31.6",
14048
14048
  "target": "npm:lodash.clonedeep",
14049
14049
  "type": "static"
14050
14050
  },
14051
14051
  {
14052
- "source": "npm:webdriverio",
14052
+ "source": "npm:webdriverio@9.31.6",
14053
14053
  "target": "npm:lodash.zip",
14054
14054
  "type": "static"
14055
14055
  },
14056
14056
  {
14057
- "source": "npm:webdriverio",
14057
+ "source": "npm:webdriverio@9.31.6",
14058
14058
  "target": "npm:query-selector-shadow-dom",
14059
14059
  "type": "static"
14060
14060
  },
14061
14061
  {
14062
- "source": "npm:webdriverio",
14062
+ "source": "npm:webdriverio@9.31.6",
14063
14063
  "target": "npm:resq",
14064
14064
  "type": "static"
14065
14065
  },
14066
14066
  {
14067
- "source": "npm:webdriverio",
14067
+ "source": "npm:webdriverio@9.31.6",
14068
14068
  "target": "npm:rgb2hex",
14069
14069
  "type": "static"
14070
14070
  },
14071
14071
  {
14072
- "source": "npm:webdriverio",
14072
+ "source": "npm:webdriverio@9.31.6",
14073
14073
  "target": "npm:serialize-error@12.0.0",
14074
14074
  "type": "static"
14075
14075
  },
14076
14076
  {
14077
- "source": "npm:webdriverio",
14077
+ "source": "npm:webdriverio@9.31.6",
14078
14078
  "target": "npm:urlpattern-polyfill@10.1.0",
14079
14079
  "type": "static"
14080
14080
  },
14081
14081
  {
14082
- "source": "npm:webdriverio",
14082
+ "source": "npm:webdriverio@9.31.6",
14083
14083
  "target": "npm:webdriver@9.31.6",
14084
14084
  "type": "static"
14085
14085
  }
@@ -14386,5 +14386,5 @@
14386
14386
  },
14387
14387
  "version": "6.0",
14388
14388
  "errors": [],
14389
- "computedAt": 1789678758701
14389
+ "computedAt": 1789702670635
14390
14390
  }
@@ -12,8 +12,8 @@
12
12
  "postinstall": "spectra sync-types"
13
13
  },
14
14
  "devDependencies": {
15
- "@testspectra/cli": "^1.1.8-rc.30",
16
- "@testspectra/matchers": "^1.1.8-rc.30",
15
+ "@testspectra/cli": "^1.1.8-rc.31",
16
+ "@testspectra/matchers": "^1.1.8-rc.31",
17
17
  "@types/node": "^20.14.0",
18
18
  "@wdio/cli": "^9.2.8",
19
19
  "@wdio/local-runner": "^9.2.8",
@@ -3,6 +3,19 @@ import { defineConfig } from "@testspectra/cli";
3
3
  export default defineConfig({
4
4
  webConfig: {
5
5
  baseUrl: "http://localhost:5173",
6
+ hosts: {
7
+ // Named host aliases for microfrontends and multi-entrypoint apps
8
+ // e.g. sso: "https://sso.local:5174", admin: "https://admin.local:5176"
9
+ },
10
+ devServers: [
11
+ // Auto-start and healthcheck local development servers before running tests
12
+ // {
13
+ // name: "app",
14
+ // command: "pnpm dev",
15
+ // url: "http://localhost:5173",
16
+ // reuseExistingServer: true,
17
+ // },
18
+ ],
6
19
  maxConcurrentSessions: "1",
7
20
  headless: true,
8
21
  implicitWait: "5000",
@@ -14,9 +14,9 @@
14
14
  "postinstall": "spectra sync-types"
15
15
  },
16
16
  "devDependencies": {
17
- "@testspectra/cli": "^1.1.8-rc.30",
18
- "@testspectra/matchers": "^1.1.8-rc.30",
19
- "@testspectra/react": "^1.1.8-rc.30",
17
+ "@testspectra/cli": "^1.1.8-rc.31",
18
+ "@testspectra/matchers": "^1.1.8-rc.31",
19
+ "@testspectra/react": "^1.1.8-rc.31",
20
20
  "@types/node": "^20.14.0",
21
21
  "@types/react": "^18.3.3",
22
22
  "@types/react-dom": "^18.3.0",
@@ -1 +0,0 @@
1
- 2db95c618fc201b3c5e4b2f56e93c5e5fca36ba0d31250c65c98aabed5385361
@@ -1,24 +0,0 @@
1
- import { describe, it, expect, vi } from 'vitest';
2
- const { execFileSyncMock } = vi.hoisted(() => ({ execFileSyncMock: vi.fn() }));
3
- vi.mock('child_process', () => ({
4
- execFileSync: execFileSyncMock,
5
- spawn: vi.fn(),
6
- }));
7
- vi.mock('../../runner/bridge.js', () => ({
8
- RustCoreBridge: { resolveBinaryPath: () => '/fake/testspectra-runner' },
9
- }));
10
- import { runSystemChecks } from '../doctor.js';
11
- describe('runSystemChecks scope forwarding', () => {
12
- it('forwards a category scope to the runner (efficient partial doctor)', async () => {
13
- execFileSyncMock.mockReturnValueOnce(JSON.stringify({ all_ready: true, missing_count: 0, dependencies: [] }));
14
- await runSystemChecks('/tmp/ws', 'web');
15
- const [, args] = execFileSyncMock.mock.calls.at(-1);
16
- expect(args).toEqual(['doctor', '--json', '--scope', 'web']);
17
- });
18
- it('omits --scope entirely when no scope is requested (full doctor)', async () => {
19
- execFileSyncMock.mockReturnValueOnce(JSON.stringify({ all_ready: true, missing_count: 0, dependencies: [] }));
20
- await runSystemChecks('/tmp/ws');
21
- const [, args] = execFileSyncMock.mock.calls.at(-1);
22
- expect(args).toEqual(['doctor', '--json']);
23
- });
24
- });