Skip to content

Commit c9ad4dd

Browse files
committed
fix(test): use ReturnType instead of known type 2
1 parent ecde7af commit c9ad4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/graphql-scalar-uuid/test/uuid-scalar.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ApolloDriver } from '@nestjs/apollo'
22
import { INestApplication } from '@nestjs/common'
33
import { Args, GraphQLModule, Query, Resolver } from '@nestjs/graphql'
44
import { Test as NestTest, TestingModule } from '@nestjs/testing'
5-
import supertest, { SuperTest, Test } from 'supertest'
5+
import supertest from 'supertest'
66
import { v4 as uuidv4 } from 'uuid'
77

88
import { UUIDv4Scalar } from '..'
@@ -26,7 +26,7 @@ interface Data {
2626
}
2727

2828
let app: INestApplication
29-
let testServer: SuperTest<Test>
29+
let testServer: ReturnType<typeof supertest>
3030

3131
@Resolver()
3232
class TestResolver {

0 commit comments

Comments
 (0)