Skip to content

Commit 0c91a72

Browse files
tobias-tenglermichaelstaib
authored andcommitted
Improve automatic mocking (#7676)
1 parent 2fb7f14 commit 0c91a72

18 files changed

+2456
-607
lines changed

src/HotChocolate/Fusion/test/Core.Tests/AutomaticMockingTests.cs

Lines changed: 2409 additions & 190 deletions
Large diffs are not rendered by default.

src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ type Query {
30943094

30953095
using var subgraphs = new TestSubgraphCollection(output, [subgraph]);
30963096
var executor = await subgraphs.GetExecutorAsync(
3097-
configureBuilder: builder =>
3097+
configure: builder =>
30983098
builder.AddErrorFilter(error => error.WithMessage("REPLACED MESSAGE").WithCode("CUSTOM_CODE")));
30993099
var request = """
31003100
query {

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.ListOfObjects.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.ListOfObjects_Property_Error_At_Index.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.ListOfObjects_Property_Null_At_Index.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.ListOfScalars.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.Object.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.Plural_ById.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.Plural_ById_Error.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/AutomaticMockingTests.Plural_ById_Error_At_Index.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)