Skip to content

Commit

Permalink
fix(tests): add missing modules to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmat committed Jan 22, 2024
1 parent 9647916 commit 7b5dde2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions apps/remote-storage-server/test/entities/entities.e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import * as request from 'supertest'
import {Test, TestingModule} from '@nestjs/testing'
import {INestApplication} from '@nestjs/common'
import {EntitiesModule} from '../../src/entities/entities.module'
import {AppModule} from '../../src/app.module'
import {RedisService} from '../../src/services/data/redis/redis.service'
import { Test, TestingModule } from '@nestjs/testing'
import { INestApplication } from '@nestjs/common'
import { EntitiesModule } from '../../src/entities/entities.module'
import { AppModule } from '../../src/app.module'
import { RedisService } from '../../src/services/data/redis/redis.service'
import { DataServiceModule } from '../../src/services/data/data-service/data-service.module'
import { RedisModule } from '../../src/services/data/redis/redis.module'
import { SqliteModule } from '../../src/services/data/sqlite/sqlite.module'

describe('entities/', () => {
let app: INestApplication
Expand All @@ -14,7 +17,7 @@ describe('entities/', () => {
beforeAll(async () => {
const redisService = new RedisService()
const testModule: TestingModule = await Test.createTestingModule({
imports: [EntitiesModule, AppModule],
imports: [EntitiesModule, DataServiceModule, RedisModule, SqliteModule, AppModule],
})
.overrideProvider(RedisService)
.useValue(redisService)
Expand Down

0 comments on commit 7b5dde2

Please sign in to comment.