Migrate public media API E2E test to global TestSetup

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-10-14 21:01:29 +02:00
parent 21f4ffe2df
commit 1bc3fbb449
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 32 additions and 67 deletions

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { INestApplication } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { NestExpressApplication } from '@nestjs/platform-express';
import { Test, TestingModule } from '@nestjs/testing';
import { TypeOrmModule } from '@nestjs/typeorm';
@ -32,7 +32,7 @@ import { UsersService } from '../src/users/users.service';
export class TestSetup {
moduleRef: TestingModule;
app: INestApplication;
app: NestExpressApplication;
userService: UsersService;
configService: ConfigService;