Skip to content

Revert "Defer ux lookup until first call" #975

Revert "Defer ux lookup until first call"

Revert "Defer ux lookup until first call" #975

Triggered via push March 21, 2025 17:01
Status Failure
Total duration 3m 52s
Artifacts

test.yml

on: push
Tests  /  Resolving inputs
0s
Tests / Resolving inputs
Matrix: Tests / Test
Fit to window
Zoom out
Zoom in

Annotations

80 errors
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: '/opt/hostedtoolcache/node/22.14.0/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\n/home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\n ^\n\n{}\n\nNode.js v22.14.0' }
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,13 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,14 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,14 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v22.14.0" ❯ src/commands/info/cmd-info.test.ts:56:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: '/opt/hostedtoolcache/node/18.20.7/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\n/home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\n ^\n\nError: Failed to fetch Socket organization info: undefined\n at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7\n\nNode.js v18.20.7' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v18.20.7" ❯ src/commands/info/cmd-info.test.ts:56:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: '/opt/hostedtoolcache/node/23.10.0/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\n/home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\n ^\n\n{}\n\nNode.js v23.10.0' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,13 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,14 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,14 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + {} + + Node.js v23.10.0" ❯ src/commands/info/cmd-info.test.ts:56:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: '/opt/hostedtoolcache/node/20.19.0/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\n/home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\n ^\n\nError: Failed to fetch Socket organization info: undefined\n at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7\n\nNode.js v20.19.0' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188 + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`); + ^ + + Error: Failed to fetch Socket organization info: undefined + at /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1188:15 + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + at async /home/runner/work/socket-cli/socket-cli/dist/module-sync/shadow-npm-inject.js:1183:7 + + Node.js v20.19.0" ❯ src/commands/info/cmd-info.test.ts:56:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\23.10.0\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\nD:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\r\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\r\n ^\r\n\r\nError: Failed to fetch Socket organization info: undefined\r\n at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\r\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\r\n at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\r\n\r\nNode.js v23.10.0' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/info/cmd-info.test.ts:56:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info mootools --dry-run`: src/commands/info/cmd-info.test.ts#L80
Error: Snapshot `socket info > should require args with just dry-run: `info mootools --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v23.10.0" ❯ src/commands/info/cmd-info.test.ts:80:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\18.20.7\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\nD:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\r\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\r\n ^\r\n\r\nError: Failed to fetch Socket organization info: undefined\r\n at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\r\n at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\r\n\r\nNode.js v18.20.7' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/info/cmd-info.test.ts:56:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info mootools --dry-run`: src/commands/info/cmd-info.test.ts#L80
Error: Snapshot `socket info > should require args with just dry-run: `info mootools --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v18.20.7" ❯ src/commands/info/cmd-info.test.ts:80:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\22.14.0\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\nD:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\r\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\r\n ^\r\n\r\nError: Failed to fetch Socket organization info: undefined\r\n at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\r\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\r\n at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\r\n\r\nNode.js v22.14.0' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1200\x0d + throw new Error(`Failed to fetch API key settings: ${result.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch API key settings: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1200:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v22.14.0" ❯ src/commands/info/cmd-info.test.ts:56:32
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen: test/socket-cdxgen.test.ts#L40
Error: command failed ❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22 ❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22 ❯ test/socket-cdxgen.test.ts:40:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\20.18.3\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: '_____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>\n |__ | . | _| \'_| -_| _| | Node: <redacted>, API token set: <redacted>\n |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>\n\nD:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\r\n throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\r\n ^\r\n\r\nError: Failed to fetch Socket organization info: undefined\r\n at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\r\n at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\r\n\r\nNode.js v20.18.3' }
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`: src/commands/analytics/cmd-analytics.test.ts#L62
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/analytics/cmd-analytics.test.ts:62:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched - Expected + Received @@ -4,6 +4,16 @@ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`: src/commands/audit-log/cmd-audit-log.test.ts#L81
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/audit-log/cmd-audit-log.test.ts:81:32
src/commands/dependencies/cmd-dependencies.test.ts > socket dependencies > should require args with just dry-run: `dependencies --dry-run`: src/commands/dependencies/cmd-dependencies.test.ts#L55
Error: Snapshot `socket dependencies > should require args with just dry-run: `dependencies --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/dependencies/cmd-dependencies.test.ts:55:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L60
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get --dry-run` 2` mismatched - Expected + Received @@ -9,6 +9,17 @@ - Specify a before and after full scan ID \x1b[31m(missing before and after!)\x1b[39m - To get full scans IDs, you can run the command "socket scan list <your org slug>". The args are expecting a full `aaa0aa0a-aaaa-0000-0a0a-0000000a00a0` ID. - - Org name as the first argument \x1b[31m(missing!)\x1b[39m" + - Org name as the first argument \x1b[31m(missing!)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:60:32
src/commands/diff-scan/cmd-diff-scan-get.test.ts > socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y`: src/commands/diff-scan/cmd-diff-scan-get.test.ts#L96
Error: Snapshot `socket diff-scan get > should require args with just dry-run: `diff-scan get fakeorg --dry-run --before x --after y` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/diff-scan/cmd-diff-scan-get.test.ts:96:32
src/commands/diff-scan/cmd-diff-scan.test.ts > socket diff-scan > should require args with just dry-run: `diff-scan --dry-run`: src/commands/diff-scan/cmd-diff-scan.test.ts#L56
Error: Snapshot `socket diff-scan > should require args with just dry-run: `diff-scan --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/diff-scan/cmd-diff-scan.test.ts:56:32
src/commands/fix/cmd-fix.test.ts > socket fix > should require args with just dry-run: `fix --dry-run`: src/commands/fix/cmd-fix.test.ts#L48
Error: Snapshot `socket fix > should require args with just dry-run: `fix --dry-run` 2` mismatched - Expected + Received " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/fix/cmd-fix.test.ts:48:32
src/commands/info/cmd-info.test.ts > socket info > should require args with just dry-run: `info --dry-run`: src/commands/info/cmd-info.test.ts#L56
Error: Snapshot `socket info > should require args with just dry-run: `info --dry-run` 2` mismatched - Expected + Received @@ -6,6 +6,17 @@ \x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - Expecting a package name \x1b[31m(missing!)\x1b[39m - - Can only accept one package at a time \x1b[32m(ok)\x1b[39m" + - Can only accept one package at a time \x1b[32m(ok)\x1b[39m + + D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188\x0d + throw new Error(`Failed to fetch Socket organization info: ${orgResult.error.message}`);\x0d + ^\x0d + \x0d + Error: Failed to fetch Socket organization info: undefined\x0d + at D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1188:15\x0d + at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\x0d + at async D:\a\socket-cli\socket-cli\dist\module-sync\index.js:1183:7\x0d + \x0d + Node.js v20.18.3" ❯ src/commands/info/cmd-info.test.ts:56:32