feat(@graphql-hive/cli): json output #16819
Annotations
10 errors
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L123
Error: Snapshot `projectType: 'SINGLE' | model: 'modern' | json: false > publishing invalid schema SDL provides meaningful feedback for the user. > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Syntax Error: Unexpected Name "iliketurtles".
+ Error: Syntax Error: Unexpected Name "iliketurtles".
+ at SchemaPublish.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:86:11)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/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=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
✖ The SDL is not valid at line 1, column 1:
Syntax Error: Unexpected Name "iliketurtles".
❯ tests/cli/schema.spec.ts:123:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L225
Error: Snapshot `projectType: 'SINGLE' | model: 'modern' | json: false > schema:publish should see Invalid Token error when token is invalid > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Request to Hive API failed. Caused by error(s):
+ Error: Request to Hive API failed. Caused by error(s):
- › Invalid token provided
+ Invalid token provided
+ at clientErrorToCLIFailure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:466:10)
+ at SchemaPublish.catch (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:386:25)
+ at SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:315:29)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
__NONE__
❯ tests/cli/schema.spec.ts:225:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L123
Error: Snapshot `projectType: 'STITCHING' | model: 'modern' | json: false > publishing invalid schema SDL provides meaningful feedback for the user. > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Syntax Error: Unexpected Name "iliketurtles".
+ Error: Syntax Error: Unexpected Name "iliketurtles".
+ at SchemaPublish.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:86:11)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/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=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
✖ The SDL is not valid at line 1, column 1:
Syntax Error: Unexpected Name "iliketurtles".
❯ tests/cli/schema.spec.ts:123:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L225
Error: Snapshot `projectType: 'STITCHING' | model: 'modern' | json: false > schema:publish should see Invalid Token error when token is invalid > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Request to Hive API failed. Caused by error(s):
+ Error: Request to Hive API failed. Caused by error(s):
- › Invalid token provided
+ Invalid token provided
+ at clientErrorToCLIFailure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:466:10)
+ at SchemaPublish.catch (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:386:25)
+ at SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:315:29)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
__NONE__
❯ tests/cli/schema.spec.ts:225:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L123
Error: Snapshot `projectType: 'FEDERATION' | model: 'modern' | json: false > publishing invalid schema SDL provides meaningful feedback for the user. > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Syntax Error: Unexpected Name "iliketurtles".
+ Error: Syntax Error: Unexpected Name "iliketurtles".
+ at SchemaPublish.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:86:11)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/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=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
✖ The SDL is not valid at line 1, column 1:
Syntax Error: Unexpected Name "iliketurtles".
❯ tests/cli/schema.spec.ts:123:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L225
Error: Snapshot `projectType: 'FEDERATION' | model: 'modern' | json: false > schema:publish should see Invalid Token error when token is invalid > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Request to Hive API failed. Caused by error(s):
+ Error: Request to Hive API failed. Caused by error(s):
- › Invalid token provided
+ Invalid token provided
+ at clientErrorToCLIFailure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:466:10)
+ at SchemaPublish.catch (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:386:25)
+ at SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:315:29)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
__NONE__
❯ tests/cli/schema.spec.ts:225:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L123
Error: Snapshot `projectType: 'SINGLE' | model: 'legacy' | json: false > publishing invalid schema SDL provides meaningful feedback for the user. > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Syntax Error: Unexpected Name "iliketurtles".
+ Error: Syntax Error: Unexpected Name "iliketurtles".
+ at SchemaPublish.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:86:11)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/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=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
✖ The SDL is not valid at line 1, column 1:
Syntax Error: Unexpected Name "iliketurtles".
❯ tests/cli/schema.spec.ts:123:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L225
Error: Snapshot `projectType: 'SINGLE' | model: 'legacy' | json: false > schema:publish should see Invalid Token error when token is invalid > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Request to Hive API failed. Caused by error(s):
+ Error: Request to Hive API failed. Caused by error(s):
- › Invalid token provided
+ Invalid token provided
+ at clientErrorToCLIFailure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:466:10)
+ at SchemaPublish.catch (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:386:25)
+ at SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:315:29)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
__NONE__
❯ tests/cli/schema.spec.ts:225:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L123
Error: Snapshot `projectType: 'STITCHING' | model: 'legacy' | json: false > publishing invalid schema SDL provides meaningful feedback for the user. > schemaPublish 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Syntax Error: Unexpected Name "iliketurtles".
+ Error: Syntax Error: Unexpected Name "iliketurtles".
+ at SchemaPublish.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:86:11)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/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=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
✖ The SDL is not valid at line 1, column 1:
Syntax Error: Unexpected Name "iliketurtles".
❯ tests/cli/schema.spec.ts:123:7
|
run integration tests:
integration-tests/tests/cli/schema.spec.ts#L202
Error: Snapshot `projectType: 'STITCHING' | model: 'legacy' | json: false > schema:check should throw on corrupted schema > schemaCheck 1` mismatched
- Expected
+ Received
@@ -6,9 +6,9 @@
stdout--------------------------------------------:
✖ Detected 3 errors
- Unknown type User.
- Unknown type: User.
- - Error: Unknown type: User.
+ - Unknown type: User.
View full report:
http://__PATH__
❯ tests/cli/schema.spec.ts:202:5
|
Loading