Skip to content

Commit ddc0cf1

Browse files
committed
f
1 parent 970bc34 commit ddc0cf1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

integrationTests/dev-node-explicit/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"name": "graphql-js-test-dev-node-explicit",
3-
"description": "Node.js explicit development mode integration test",
4-
"version": "1.0.0",
2+
"description": "explicit graphql-js development mode should work with node",
53
"private": true,
64
"type": "module",
75
"scripts": {
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import assert from 'assert';
21
import { isObjectType } from 'graphql';
32

43
class GraphQLObjectType {
@@ -9,10 +8,12 @@ class GraphQLObjectType {
98

109
try {
1110
isObjectType(new GraphQLObjectType());
12-
assert.fail('Expected isObjectType to throw an error in Node.js explicit development mode.');
11+
throw new Error(
12+
'Expected isObjectType to throw an error in Node.js explicit development mode.',
13+
);
1314
} catch (error) {
14-
assert.ok(
15-
error.message.includes('multiple') || error.message.includes('GraphQL'),
16-
`Expected error message to include 'multiple' or 'GraphQL', but got: "${error.message}"`
15+
if (
16+
!error.message.includes('from another module or realm'),
17+
`Expected error message to include 'from another module or realm', but got: "${error.message}"`,
1718
);
1819
}

0 commit comments

Comments
 (0)