-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* test: add test reproducing CRLF issue #7362 * fix: gql-tag-operations generates invalid types on Windows #7362 * chore: add changeset
- Loading branch information
1 parent
723321c
commit 015d344
Showing
5 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-codegen/gql-tag-operations-preset': patch | ||
--- | ||
|
||
fix: gql-tag-operations generates invalid types on Windows #7362 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This fixture must contain CRLF as line breaks. See https://github.com/dotansimha/graphql-code-generator/issues/7362 | ||
packages/presets/gql-tag-operations/tests/fixtures/crlf-operation.ts eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/presets/gql-tag-operations/tests/fixtures/crlf-operation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
//@ts-ignore | ||
import gql from 'gql-tag'; | ||
|
||
//@ts-ignore | ||
const A = gql(/* GraphQL */ ` | ||
query a { | ||
a | ||
} | ||
`); | ||
|
||
//@ts-ignore | ||
const B = gql(/* GraphQL */ ` | ||
query b { | ||
b | ||
} | ||
`); | ||
|
||
//@ts-ignore | ||
const C = gql(/* GraphQL */ ` | ||
fragment C on Query { | ||
c | ||
} | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
015d344
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: