fix: ignore directive replacements for consolidated types when definitionType is input/output #270
Annotations
2 errors
|
error: expect(received).toEqual(expected):
test/plugin.test.ts#L32
Expected: "package com.kotlin.generated\n\nimport com.expediagroup.graphql.generator.annotations.*\nimport should_honor_directiveReplacements_config.*\n\n@SomeAnnotation1\n@SomeAnnotation2\n@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])\ndata class TypeThatShouldGetDirectiveReplacement(\n val field: String? = null\n)\n\n@SomeAnnotation2\n@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.INPUT_OBJECT])\ndata class InputTypeThatShouldNotGetDirectiveReplacement(\n val field: String? = null\n)\n\ndata class MyConsolidatedTypeWithDirectives(\n val field: String? = null\n)\n\n@SomeAnnotation2\ndata class MyConsolidatedTypeWithDirectives2(\n val field: String? = null\n)\n"
Received: "package com.kotlin.generated\n\nimport com.expediagroup.graphql.generator.annotations.*\nimport should_honor_directiveReplacements_config.*\n\n@SomeAnnotation1\n@SomeAnnotation2\n@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])\ndata class TypeHonoringDirectiveReplacementsDefinitionType(\n val field: String? = null\n)\n\n@SomeAnnotation2\n@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.INPUT_OBJECT])\ndata class InputTypeThatShouldNotGetDirectiveReplacement(\n val field: String? = null\n)\n\ndata class MyConsolidatedTypeWithDirectives(\n val field: String? = null\n)\n\n@SomeAnnotation2\ndata class MyConsolidatedTypeWithDirectives2(\n val field: String? = null\n)\n"
at /home/runner/work/graphql-kotlin-codegen/graphql-kotlin-codegen/test/plugin.test.ts:32:20
|
|
Tests
Process completed with exit code 1.
|