Skip to content

Commit ecde7af

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/auth/test/local-auth.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { INestApplication, Module } from '@nestjs/common'
22
import { Test as NestTest, TestingModule } from '@nestjs/testing'
3-
import request, { SuperTest, Test } from 'supertest'
3+
import request from 'supertest'
44

55
import { UserService } from '../examples'
66
import { JwtGuard, LocalAuthModule, LocalGuard } from '../src'
@@ -15,7 +15,7 @@ class UserModule {}
1515
describe('Local Authentication', () => {
1616
let testModule: TestingModule
1717
let app: INestApplication
18-
let testServer: SuperTest<Test>
18+
let testServer: ReturnType<typeof request>
1919
let bearerToken: string
2020

2121
beforeAll(async () => {

0 commit comments

Comments
 (0)