Skip to content

Commit

Permalink
streamline test code
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jan 14, 2025
1 parent f62077d commit 2b4dac9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/transform/__tests__/stream-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import {
import { GraphQLID, GraphQLString } from '../../type/scalars.js';
import { GraphQLSchema } from '../../type/schema.js';

import { legacyExecuteIncrementally } from '../legacyExecuteIncrementally.js';
import type {
LegacyInitialIncrementalExecutionResult,
LegacySubsequentIncrementalExecutionResult,
} from '../transformResult.js';

import { execute } from './execute.js';

const friendType = new GraphQLObjectType({
fields: {
id: { type: GraphQLID },
Expand Down Expand Up @@ -90,7 +91,7 @@ async function complete(
rootValue: unknown = {},
enableEarlyExecution = false,
) {
const result = await legacyExecuteIncrementally({
const result = await execute({
schema,
document,
rootValue,
Expand All @@ -115,7 +116,7 @@ async function completeAsync(
numCalls: number,
rootValue: unknown = {},
) {
const result = await legacyExecuteIncrementally({
const result = await execute({
schema,
document,
rootValue,
Expand Down Expand Up @@ -1791,7 +1792,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -1971,7 +1972,7 @@ describe('Execute: legacy stream directive', () => {
}
}
`);
const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -2072,7 +2073,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -2182,7 +2183,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -2292,7 +2293,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -2344,7 +2345,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down Expand Up @@ -2404,7 +2405,7 @@ describe('Execute: legacy stream directive', () => {
}
`);

const executeResult = await legacyExecuteIncrementally({
const executeResult = await execute({
schema,
document,
rootValue: {
Expand Down

0 comments on commit 2b4dac9

Please sign in to comment.