Skip to content

Commit

Permalink
rollback unneded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Aug 24, 2024
1 parent 8fa8b8c commit b1c6bcc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/graphiql/test/afterDevServer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import-x/no-extraneous-dependencies
const { useServer } = require('graphql-ws/lib/use/ws');
const { Server: WebSocketServer } = require('ws');
const { schema } = require('./schema');
const schema = require('./schema');

module.exports = function afterDevServer(_app, _server, _compiler) {
const wsServer = new WebSocketServer({
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/test/beforeDevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const express = require('express');
const path = require('node:path');
// eslint-disable-next-line import-x/no-extraneous-dependencies
const { createHandler } = require('graphql-http/lib/use/express');
const { schema } = require('./schema');
const schema = require('./schema');
const badSchema = require('../cypress/fixtures/bad-schema.json');

module.exports = function beforeDevServer(app, _server, _compiler) {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/test/e2e-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
sendResult,
} = 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
const WebSocketsServer = require('./afterDevServer');
const { schema } = require('./schema');
const schema = require('./schema');
const { customExecute } = require('./execute');
// eslint-disable-next-line import-x/no-extraneous-dependencies
const { createHandler } = require('graphql-sse/lib/use/express');
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/test/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,4 @@ const myTestSchema = new GraphQLSchema({
directives,
});

exports.schema = myTestSchema;
module.exports = myTestSchema;
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ describe('MessageProcessor with config', () => {
it('caches files and schema with a URL config', async () => {
const offset = parseInt(version, 10) > 16 ? 25 : 0;

mockSchema(require('../../../graphiql/test/schema').schema);
mockSchema(require('../../../graphiql/test/schema'));

const project = new MockProject({
files: [
Expand Down Expand Up @@ -499,7 +499,7 @@ describe('MessageProcessor with config', () => {
});

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

const project = new MockProject({
files: [
Expand Down

0 comments on commit b1c6bcc

Please sign in to comment.