Skip to content

Commit

Permalink
test(snapshot): update snapshots for generate test cases
Browse files Browse the repository at this point in the history
The snapshots for the `generate` test cases have been updated to reflect the new output format. This includes changes in the way GraphQL document validation results are displayed, providing a more concise and readable format.

- Updated `generate > Renders a table with information about all documents with errors. 1`
- Updated `generate > Renders a table with information about all documents. 1`
  • Loading branch information
asonnleitner committed Jul 26, 2024
1 parent 0396f15 commit ad8baa1
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions test/helpers/__snapshots__/generate.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -799,35 +799,19 @@ declare module 'nitropack' {
`;
exports[`generate > Renders a table with information about all documents with errors. 1`] = `
"GraphQL code generation table:
┌───────────┬──────┬────────────────┬───────────────────────────────────────────┐
│ Operation │ Name │ File │ Errors │
├───────────┼──────┼────────────────┼───────────────────────────────────────────┤
│ │ │ nuxt.config.ts │ Syntax Error: Expected Name, found <EOF>. │
│ │ │ │ │
│ │ │ │ nuxt.config.ts:3:11 │
│ │ │ │ 2 | id │
│ │ │ │ 3 | │
│ │ │ │ | ^ │
├───────────┼──────┼────────────────┼───────────────────────────────────────────┤
│ │ │ nuxt.config.ts │ Syntax Error: Expected Name, found <EOF>. │
│ │ │ │ │
│ │ │ │ nuxt.config.ts:3:11 │
│ │ │ │ 2 | id │
│ │ │ │ 3 | │
│ │ │ │ | ^ │
└───────────┴──────┴────────────────┴───────────────────────────────────────────┘"
"GraphQL Document Validation nuxt.config.ts x
Syntax Error: Expected Name, found <EOF>.
nuxt.config.ts:3:11
2 | id
3 |
| ^ nuxt.config.ts x
Syntax Error: Expected Name, found <EOF>.
nuxt.config.ts:3:11
2 | id
3 |
| ^"
`;
exports[`generate > Renders a table with information about all documents. 1`] = `
"GraphQL code generation table:
┌───────────┬────────────────┬────────────────┬────────┐
│ Operation │ Name │ File │ Errors │
├───────────┼────────────────┼────────────────┼────────┤
│ │ nuxt.config.ts │ nuxt.config.ts │ │
├───────────┼────────────────┼────────────────┼────────┤
│ query │ one │ nuxt.config.ts │ │
├───────────┼────────────────┼────────────────┼────────┤
│ mutation │ two │ nuxt.config.ts │ │
└───────────┴────────────────┴────────────────┴────────┘"
"GraphQL Document Validation nuxt.config.ts nuxt.config.ts ✓query one nuxt.config.ts ✓mutation two nuxt.config.ts ✓"
`;

0 comments on commit ad8baa1

Please sign in to comment.