@testspectra/cli 1.1.10 → 1.1.11-rc.3

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 (28) hide show
  1. package/bin/.testspectra-runner.hash +1 -0
  2. package/dist/commands/__tests__/doctor-scope.test.js +24 -0
  3. package/package.json +7 -7
  4. package/templates/default/package.json +2 -2
  5. package/templates/nx/.nx/workspace-data/d/daemon.log +1012 -6493
  6. package/templates/nx/.nx/workspace-data/file-map.json +19 -19
  7. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  8. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  9. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +130 -81
  10. package/templates/nx/.nx/workspace-data/project-graph.json +138 -83
  11. package/templates/nx/package.json +2 -2
  12. package/templates/react-component/package.json +3 -3
  13. package/dist/.tsbuildinfo +0 -1
  14. package/dist/commands/update.d.ts +0 -3
  15. package/dist/commands/update.js +0 -109
  16. package/dist/lifecycle/__tests__/lifecycle-engine.test.js +0 -290
  17. package/dist/lifecycle/hook-discovery.d.ts +0 -24
  18. package/dist/lifecycle/hook-discovery.js +0 -60
  19. package/dist/lifecycle/hook-dispatcher.d.ts +0 -34
  20. package/dist/lifecycle/hook-dispatcher.js +0 -190
  21. package/dist/lifecycle/index.d.ts +0 -3
  22. package/dist/lifecycle/index.js +0 -3
  23. package/dist/lifecycle/parallel-grouping.d.ts +0 -27
  24. package/dist/lifecycle/parallel-grouping.js +0 -151
  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/server-process.json +0 -3
  28. /package/dist/{lifecycle/__tests__/lifecycle-engine.test.d.ts → commands/__tests__/doctor-scope.test.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ 2db95c618fc201b3c5e4b2f56e93c5e5fca36ba0d31250c65c98aabed5385361
@@ -0,0 +1,24 @@
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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/cli",
3
- "version": "1.1.10",
3
+ "version": "1.1.11-rc.3",
4
4
  "description": "TestSpectra Cross-Platform Test Runner CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,9 +26,9 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@clack/prompts": "^1.7.0",
29
- "@testspectra/matchers": "^1.1.10",
30
- "@testspectra/react": "^1.1.10",
31
- "@testspectra/skills": "^1.1.10",
29
+ "@testspectra/matchers": "^1.1.11-rc.3",
30
+ "@testspectra/react": "^1.1.11-rc.3",
31
+ "@testspectra/skills": "^1.1.11-rc.3",
32
32
  "chalk": "^5.3.0",
33
33
  "commander": "^12.1.0",
34
34
  "cross-spawn": "^7.0.6",
@@ -39,9 +39,9 @@
39
39
  "zod": "^3.23.8"
40
40
  },
41
41
  "optionalDependencies": {
42
- "@testspectra/cli-darwin-arm64": "1.1.10",
43
- "@testspectra/cli-linux-x64": "1.1.10",
44
- "@testspectra/cli-win32-x64": "1.1.10"
42
+ "@testspectra/cli-darwin-arm64": "1.1.11-rc.3",
43
+ "@testspectra/cli-linux-x64": "1.1.11-rc.3",
44
+ "@testspectra/cli-win32-x64": "1.1.11-rc.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/cross-spawn": "^6.0.6",
@@ -17,8 +17,8 @@
17
17
  "postinstall": "spectra sync-types"
18
18
  },
19
19
  "devDependencies": {
20
- "@testspectra/cli": "^1.1.10",
21
- "@testspectra/matchers": "^1.1.10",
20
+ "@testspectra/cli": "^1.1.11-rc.3",
21
+ "@testspectra/matchers": "^1.1.11-rc.3",
22
22
  "@types/node": "^20.14.0",
23
23
  "@wdio/cli": "^9.2.8",
24
24
  "@wdio/local-runner": "^9.2.8",