Skip to content

Commit 9bcc1f7

Browse files
committed
remove extra ticks
use children array rather than promises to manage hierarchy
1 parent 473876d commit 9bcc1f7

File tree

2 files changed

+137
-111
lines changed

2 files changed

+137
-111
lines changed

src/execution/__tests__/stream-test.ts

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,6 @@ describe('Execute: stream directive', () => {
11741174
],
11751175
},
11761176
],
1177-
hasNext: true,
1178-
},
1179-
{
11801177
hasNext: false,
11811178
},
11821179
]);
@@ -1200,25 +1197,19 @@ describe('Execute: stream directive', () => {
12001197
} /* c8 ignore stop */,
12011198
},
12021199
});
1203-
expectJSON(result).toDeepEqual([
1204-
{
1205-
errors: [
1206-
{
1207-
message:
1208-
'Cannot return null for non-nullable field NestedObject.nonNullScalarField.',
1209-
locations: [{ line: 4, column: 11 }],
1210-
path: ['nestedObject', 'nonNullScalarField'],
1211-
},
1212-
],
1213-
data: {
1214-
nestedObject: null,
1200+
expectJSON(result).toDeepEqual({
1201+
errors: [
1202+
{
1203+
message:
1204+
'Cannot return null for non-nullable field NestedObject.nonNullScalarField.',
1205+
locations: [{ line: 4, column: 11 }],
1206+
path: ['nestedObject', 'nonNullScalarField'],
12151207
},
1216-
hasNext: true,
1217-
},
1218-
{
1219-
hasNext: false,
1208+
],
1209+
data: {
1210+
nestedObject: null,
12201211
},
1221-
]);
1212+
});
12221213
});
12231214
it('Filters payloads that are nulled by a later synchronous error', async () => {
12241215
const document = parse(`
@@ -1362,9 +1353,6 @@ describe('Execute: stream directive', () => {
13621353
],
13631354
},
13641355
],
1365-
hasNext: true,
1366-
},
1367-
{
13681356
hasNext: false,
13691357
},
13701358
]);

0 commit comments

Comments
 (0)