-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add outputFileExtension to specify which output extension to use
- Loading branch information
1 parent
9bc221e
commit 3d788f2
Showing
5 changed files
with
83 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
10 changes: 10 additions & 0 deletions
10
packages/relay/transform/tests/fixture/outputFileExtension/javascript/input.js
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,10 @@ | ||
const myFragment = graphql` | ||
fragment FooFragment on Bar { | ||
id | ||
} | ||
` | ||
useQuery(graphql` | ||
query FooQuery { | ||
id | ||
} | ||
`) |
4 changes: 4 additions & 0 deletions
4
packages/relay/transform/tests/fixture/outputFileExtension/javascript/output.js
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,4 @@ | ||
import __FooFragment from "__generated__/FooFragment.graphql.js"; | ||
import __FooQuery from "__generated__/FooQuery.graphql.js"; | ||
const myFragment = __FooFragment; | ||
useQuery(__FooQuery); |
10 changes: 10 additions & 0 deletions
10
packages/relay/transform/tests/fixture/outputFileExtension/typescript/input.js
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,10 @@ | ||
const myFragment = graphql` | ||
fragment FooFragment on Bar { | ||
id | ||
} | ||
` | ||
useQuery(graphql` | ||
query FooQuery { | ||
id | ||
} | ||
`) |
4 changes: 4 additions & 0 deletions
4
packages/relay/transform/tests/fixture/outputFileExtension/typescript/output.js
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,4 @@ | ||
import __FooFragment from "__generated__/FooFragment.graphql.ts"; | ||
import __FooQuery from "__generated__/FooQuery.graphql.ts"; | ||
const myFragment = __FooFragment; | ||
useQuery(__FooQuery); |