Skip to content

Commit b1c6bcc

Browse files
committed
rollback unneded changes
1 parent 8fa8b8c commit b1c6bcc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/graphiql/test/afterDevServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// eslint-disable-next-line import-x/no-extraneous-dependencies
22
const { useServer } = require('graphql-ws/lib/use/ws');
33
const { Server: WebSocketServer } = require('ws');
4-
const { schema } = require('./schema');
4+
const schema = require('./schema');
55

66
module.exports = function afterDevServer(_app, _server, _compiler) {
77
const wsServer = new WebSocketServer({

packages/graphiql/test/beforeDevServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const express = require('express');
99
const path = require('node:path');
1010
// eslint-disable-next-line import-x/no-extraneous-dependencies
1111
const { createHandler } = require('graphql-http/lib/use/express');
12-
const { schema } = require('./schema');
12+
const schema = require('./schema');
1313
const badSchema = require('../cypress/fixtures/bad-schema.json');
1414

1515
module.exports = function beforeDevServer(app, _server, _compiler) {

packages/graphiql/test/e2e-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {
1515
sendResult,
1616
} = require('graphql-helix'); // update when `graphql-http` is upgraded to support multipart requests for incremental delivery https://github.com/graphql/graphiql/pull/3682#discussion_r1715545279
1717
const WebSocketsServer = require('./afterDevServer');
18-
const { schema } = require('./schema');
18+
const schema = require('./schema');
1919
const { customExecute } = require('./execute');
2020
// eslint-disable-next-line import-x/no-extraneous-dependencies
2121
const { createHandler } = require('graphql-sse/lib/use/express');

packages/graphiql/test/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,4 +400,4 @@ const myTestSchema = new GraphQLSchema({
400400
directives,
401401
});
402402

403-
exports.schema = myTestSchema;
403+
module.exports = myTestSchema;

packages/graphql-language-service-server/src/__tests__/MessageProcessor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ describe('MessageProcessor with config', () => {
367367
it('caches files and schema with a URL config', async () => {
368368
const offset = parseInt(version, 10) > 16 ? 25 : 0;
369369

370-
mockSchema(require('../../../graphiql/test/schema').schema);
370+
mockSchema(require('../../../graphiql/test/schema'));
371371

372372
const project = new MockProject({
373373
files: [
@@ -499,7 +499,7 @@ describe('MessageProcessor with config', () => {
499499
});
500500

501501
it('caches multiple projects with files and schema with a URL config and a local schema', async () => {
502-
mockSchema(require('../../../graphiql/test/schema').schema);
502+
mockSchema(require('../../../graphiql/test/schema'));
503503

504504
const project = new MockProject({
505505
files: [

0 commit comments

Comments
 (0)