-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- https://docs.github.com/graphql/overview/public-schema - https://mswjs.io/docs/recipes/mock-graphql-schema - https://the-guild.dev/graphql/config/docs - https://the-guild.dev/graphql/eslint/docs - https://the-guild.dev/graphql/tools/docs/graphql-tag-pluck Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
afd107e
commit ab18433
Showing
42 changed files
with
61,687 additions
and
484 deletions.
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
".yarn/", | ||
"__fixtures__/api.github.com/", | ||
"dist/", | ||
"github.schema.gql", | ||
"patches/", | ||
"yarn.lock" | ||
], | ||
|
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @file Test Environment Interfaces - Spy | ||
* @file Test Interfaces - Spy | ||
* @module tests/interfaces/Spy | ||
*/ | ||
|
||
|
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,27 @@ | ||
/** | ||
* @file Test Setup - schema | ||
* @module tests/setup/graphql/schema | ||
* @see https://mswjs.io/docs/recipes/mock-graphql-schema | ||
*/ | ||
|
||
import * as mlly from '@flex-development/mlly' | ||
import pathe from '@flex-development/pathe' | ||
import { buildSchema, type GraphQLSchema } from 'graphql' | ||
|
||
/** | ||
* Absolute path to GraphQL schema file. | ||
* | ||
* @const {string} source | ||
*/ | ||
const source: string = pathe.resolve('github.schema.gql') | ||
|
||
/** | ||
* GraphQL schema object. | ||
* | ||
* @see {@linkcode GraphQLSchema} | ||
* | ||
* @const {GraphQLSchema} schema | ||
*/ | ||
const schema: GraphQLSchema = buildSchema(<string>await mlly.getSource(source)) | ||
|
||
export default schema |
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
Oops, something went wrong.