@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.
- package/bin/.testspectra-runner.hash +1 -0
- package/dist/commands/__tests__/doctor-scope.test.js +24 -0
- package/package.json +7 -7
- package/templates/default/package.json +2 -2
- package/templates/nx/.nx/workspace-data/d/daemon.log +1012 -6493
- package/templates/nx/.nx/workspace-data/file-map.json +19 -19
- package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
- package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
- package/templates/nx/.nx/workspace-data/parsed-lock-file.json +130 -81
- package/templates/nx/.nx/workspace-data/project-graph.json +138 -83
- package/templates/nx/package.json +2 -2
- package/templates/react-component/package.json +3 -3
- package/dist/.tsbuildinfo +0 -1
- package/dist/commands/update.d.ts +0 -3
- package/dist/commands/update.js +0 -109
- package/dist/lifecycle/__tests__/lifecycle-engine.test.js +0 -290
- package/dist/lifecycle/hook-discovery.d.ts +0 -24
- package/dist/lifecycle/hook-discovery.js +0 -60
- package/dist/lifecycle/hook-dispatcher.d.ts +0 -34
- package/dist/lifecycle/hook-dispatcher.js +0 -190
- package/dist/lifecycle/index.d.ts +0 -3
- package/dist/lifecycle/index.js +0 -3
- package/dist/lifecycle/parallel-grouping.d.ts +0 -27
- package/dist/lifecycle/parallel-grouping.js +0 -151
- package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm +0 -0
- package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
- package/templates/nx/.nx/workspace-data/d/server-process.json +0 -3
- /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.
|
|
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.
|
|
30
|
-
"@testspectra/react": "^1.1.
|
|
31
|
-
"@testspectra/skills": "^1.1.
|
|
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.
|
|
43
|
-
"@testspectra/cli-linux-x64": "1.1.
|
|
44
|
-
"@testspectra/cli-win32-x64": "1.1.
|
|
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.
|
|
21
|
-
"@testspectra/matchers": "^1.1.
|
|
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",
|