Skip to content

Commit b6de7ff

Browse files
Missing output property in GraphQLInvalidTestCase (#1118)
* Added missing output property * add changeset Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent aa9e123 commit b6de7ff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/nasty-dancers-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
fix(GraphQLRuleTester): provide output field for `GraphQLInvalidTestCase` type

packages/plugin/src/testkit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type GraphQLValidTestCase<Options> = Omit<RuleTester.ValidTestCase, 'opti
1818

1919
export type GraphQLInvalidTestCase<T> = GraphQLValidTestCase<T> & {
2020
errors: number | (RuleTester.TestCaseError | string)[];
21+
output?: string | null;
2122
};
2223

2324
function indentCode(code: string, indent = 4): string {

0 commit comments

Comments
 (0)