feat(@graphql-hive/cli): json output #16831
Annotations
2 errors
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'whoami' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing "registry.accessToken"
- stdout--------------------------------------------:
- __NONE__
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ stdout--------------------------------------------:
+ {}
+ execute { dir: '/home/runner/work/console/console/packages/libraries/cli/bin' } { settings: {} }
+ did command.load
+ did runHook
+ SETTING THE DAMN THING true
+ handle
+ shouldPrint true
+ config.debug true
+ debug true
+ config.debug true
+ pretty---------------------------------------------
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/config/config.js:435:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=7ivg4pfqfzsro6qqsgd5i6uylq/node_modules/@oclif/core/lib/main.js:93:16)
+ pretty---------------------------------------------
+ config_1.config.errorLogger, err.code !== 'EEXIT' Logger {
+ file: '/home/runner/.cache/@graphql-hive/cli/error.log',
+ buffer: [],
+ flushing: Promise { undefined }
+ } true
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests
Process completed with exit code 1.
|
Loading