Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jan 15, 2025
1 parent 8a753d2 commit 164395d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs-ws/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { createServer } = require('node:http');
const { WebSocketServer } = require('ws');
const { createYoga, createSchema } = require('graphql-yoga');
const { useServer } = require('graphql-ws/use/ws');
const { useServer } = require('graphql-ws/dist/use/ws.cjs');
const { parse } = require('node:url');
const next = require('next');
const { setTimeout: setTimeout$ } = require('node:timers/promises');
Expand Down
11 changes: 5 additions & 6 deletions packages/graphql-yoga/__tests__/request-cancellation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import { createDeferredPromise, fakePromise } from '@whatwg-node/server';
import { createLogger, createSchema, createYoga, FetchAPI } from '../src/index';
import { useExecutionCancellation } from '../src/plugins/use-execution-cancellation';

const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [['Ponyfill', undefined]];

if (!process.env['LEAK_TESTS']) {
variants.push([
const variants: Array<[name: string, fetchAPI: undefined | FetchAPI]> = [
['Ponyfill', undefined],
[
'Native',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - URLPattern is not available in types
globalThis,
]);
}
]
];

function waitAFewMillisecondsToMakeSureGraphQLExecutionIsNotResumingInBackground() {
return setTimeout$(5);
Expand Down

0 comments on commit 164395d

Please sign in to comment.