Skip to content

Commit

Permalink
Import cache manager to the tests and import both of the cache-manage…
Browse files Browse the repository at this point in the history
…r packages.
  • Loading branch information
slavcho committed Jul 11, 2023
1 parent 9c7e10b commit 4564851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/api/src/donations/donations.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { DonationsController } from './donations.controller'
import { DonationsService } from './donations.service'
import { CreateSessionDto } from './dto/create-session.dto'
import { UpdatePaymentDto } from './dto/update-payment.dto'
import { CACHE_MANAGER } from '@nestjs/cache-manager'

describe('DonationsController', () => {
let controller: DonationsController
Expand Down Expand Up @@ -87,6 +88,7 @@ describe('DonationsController', () => {
},
PersonService,
ExportService,
{ provide: CACHE_MANAGER, useValue: {} },
],
}).compile()

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@golevelup/nestjs-webhooks": "0.2.14",
"@keycloak/keycloak-admin-client": "18.0.0",
"@nestjs/axios": "^2.0.0",
"@nestjs/cache-manager": "^2.0.1",
"@nestjs/cli": "^9.3.0",
"@nestjs/common": "^9.3.12",
"@nestjs/config": "^2.3.1",
Expand All @@ -48,7 +49,7 @@
"@sentry/node": "^7.46.0",
"@types/cron": "^2.0.0",
"aws-sdk": "^2.1369.0",
"@nestjs/cache-manager": "^5.2.3",
"cache-manager": "^5.2.3",
"class-transformer": "0.5.1",
"class-validator": "0.14.0",
"exceljs": "4.3.0",
Expand Down

0 comments on commit 4564851

Please sign in to comment.