-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CookieCrumble.TUnit to Fusion-vnext (#7794)
- Loading branch information
Showing
9 changed files
with
104 additions
and
117 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
12 changes: 0 additions & 12 deletions
12
src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/FileResource.cs
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/ModuleInitializer.cs
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,12 @@ | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace HotChocolate.Fusion; | ||
|
||
internal static class ModuleInitializer | ||
{ | ||
[ModuleInitializer] | ||
public static void Initialize() | ||
{ | ||
CookieCrumbleTUnit.Initialize(); | ||
} | ||
} |
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
...tion.Tests/__snapshots__/OperationPlannerTests.Plan_Simple_Operation_1_Source_Schema.snap
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 @@ | ||
{ | ||
"kind": "Root", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "PRODUCTS", | ||
"document": "{ productById(id: 1) { id name } }" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
...tion.Tests/__snapshots__/OperationPlannerTests.Plan_Simple_Operation_2_Source_Schema.snap
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,17 @@ | ||
{ | ||
"kind": "Root", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "PRODUCTS", | ||
"document": "{ productById(id: 1) { id name } }", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "SHIPPING", | ||
"document": "{ productById { estimatedDelivery(postCode: \u002212345\u0022) } }" | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...tion.Tests/__snapshots__/OperationPlannerTests.Plan_Simple_Operation_3_Source_Schema.snap
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 @@ | ||
{ | ||
"kind": "Root", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "PRODUCTS", | ||
"document": "{ productById(id: 1) { name } }", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "REVIEWS", | ||
"document": "{ productById { reviews(first: 10) { nodes { body stars author } } } }", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "ACCOUNTS", | ||
"document": "{ userById { displayName } }" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...ts__/OperationPlannerTests.Plan_Simple_Operation_3_Source_Schema_And_Single_Variable.snap
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 @@ | ||
{ | ||
"kind": "Root", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "PRODUCTS", | ||
"document": "query($id: ID!) { productById(id: $id) { name } }", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "REVIEWS", | ||
"document": "query($first: Int! = 10) { productById { reviews(first: $first) { nodes { body stars author } } } }", | ||
"nodes": [ | ||
{ | ||
"kind": "Operation", | ||
"schema": "ACCOUNTS", | ||
"document": "{ userById { displayName } }" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
6 changes: 0 additions & 6 deletions
6
...hocolate/Fusion-vnext/test/Fusion.Execution.Tests/__snapshots__/ParsingTests.Test.graphql
This file was deleted.
Oops, something went wrong.