Skip to content

Commit bb073d4

Browse files
vicaryrenovate[bot]
authored andcommitted
fix(ci): test errors
1 parent 4f319e0 commit bb073d4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

internal/test-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"build": "bob-ts -i src -f interop",
2929
"prepare": "pnpm build",
3030
"start": "nodemon --exec \"concurrently pnpm:build tsc\" -w src/index.ts",
31-
"test": "jest --config local.jest.config.js"
31+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config local.jest.config.js"
3232
},
3333
"dependencies": {
3434
"@graphql-ez/fastify": "^0.12.1",

internal/test-utils/test/index.test.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs';
1+
import * as fs from 'fs';
22
import { resolve } from 'path';
33

44
import { assertIsDefined, createTestApp, gql, waitForExpect } from '../src';
@@ -97,7 +97,7 @@ test('create test app with codegen', async () => {
9797
TKey extends string,
9898
TParent,
9999
TContext,
100-
TArgs
100+
TArgs,
101101
> {
102102
subscribe: SubscriptionSubscribeFn<
103103
{ [key in TKey]: TResult },
@@ -123,7 +123,7 @@ test('create test app with codegen', async () => {
123123
TKey extends string,
124124
TParent,
125125
TContext,
126-
TArgs
126+
TArgs,
127127
> =
128128
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
129129
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
@@ -133,7 +133,7 @@ test('create test app with codegen', async () => {
133133
TKey extends string,
134134
TParent = {},
135135
TContext = {},
136-
TArgs = {}
136+
TArgs = {},
137137
> =
138138
| ((
139139
...args: any[]
@@ -158,7 +158,7 @@ test('create test app with codegen', async () => {
158158
TResult = {},
159159
TParent = {},
160160
TContext = {},
161-
TArgs = {}
161+
TArgs = {},
162162
> = (
163163
next: NextResolverFn<TResult>,
164164
parent: TParent,
@@ -183,7 +183,8 @@ test('create test app with codegen', async () => {
183183
184184
export type QueryResolvers<
185185
ContextType = EZContext,
186-
ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']
186+
ParentType extends
187+
ResolversParentTypes['Query'] = ResolversParentTypes['Query'],
187188
> = {
188189
hello?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
189190
};

0 commit comments

Comments
 (0)