GitHub Actions / JEST Tests
failed
Nov 24, 2024 in 0s
326 passed, 1 failed and 0 skipped
❌ test-results.xml
327 tests were completed in 21s with 326 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
AccountController | 2✅ | 530ms | ||
AccountService | 1✅ | 631ms | ||
AffiliateController | 10✅ | 1s | ||
AffiliateService | 1✅ | 155ms | ||
AppController | 1✅ | 219ms | ||
AppService | 1✅ | 159ms | ||
AuthService | 20✅ | 2s | ||
BankaccountController | 1✅ | 639ms | ||
BankaccountService | 1✅ | 208ms | ||
BankTransactionsController | 4✅ | 1s | ||
BankTransactionsFileController | 1✅ | 1s | ||
BankTransactionsFileService | 1✅ | 689ms | ||
BankTransactionsService | 1✅ | 755ms | ||
BenefactorController | 1✅ | 311ms | ||
BenefactorService | 1✅ | 159ms | ||
BeneficiaryController | 8✅ | 552ms | ||
BeneficiaryService | 1✅ | 151ms | ||
CampaignApplicationController | 10✅ | 925ms | ||
CampaignApplicationService | 25✅ | 2s | ||
CampaignController | 18✅ | 2s | ||
CampaignFileController | 4✅ | 1s | ||
CampaignFileService | 1✅ | 616ms | ||
CampaignFileService | 1✅ | 629ms | ||
CampaignNewsController | 1✅ | 480ms | ||
CampaignNewsFileController | 9✅ | 2s | ||
CampaignNewsService | 1✅ | 491ms | ||
CampaignService | 2✅ | 483ms | ||
CampaignTypesController | 7✅ | 411ms | ||
CampaignTypesService | 1✅ | 205ms | ||
CityController | 7✅ | 386ms | ||
CityService | 1✅ | 175ms | ||
CompanyController | 1✅ | 282ms | ||
CompanyService | 1✅ | 164ms | ||
CoordinatorController | 5✅ | 351ms | ||
CoordinatorService | 4✅ | 237ms | ||
CountryController | 8✅ | 501ms | ||
CountryService | 1✅ | 169ms | ||
DonationsController | 4✅ | 943ms | ||
DonationsService | 1✅ | 679ms | ||
DonationWishController | 1✅ | 313ms | ||
DonationWishService | 1✅ | 174ms | ||
EmailService enabled | 7✅ | 377ms | ||
ExpensesController | 7✅ | 1s | ||
ExpensesService | 1✅ | 411ms | ||
HealthController | 1✅ | 496ms | ||
ImportTransactionsTask | 15✅ | 4s | ||
ImportTransactionsTask | 2✅ | 632ms | ||
InfoRequestController | 1✅ | 543ms | ||
InfoRequestService | 1✅ | 361ms | ||
IrregularityController | 1✅ | 577ms | ||
IrregularityFileController | 1✅ | 590ms | ||
IrregularityFileService | 1✅ | 499ms | ||
IrregularityService | 1✅ | 393ms | ||
LoginController | 2✅ | 497ms | ||
MarketingNotificationsController | 23✅ | 5s | ||
OrganizerController | 1✅ | 309ms | ||
OrganizerService | 1✅ | 213ms | ||
PaypalController | 1✅ | 838ms | ||
PaypalService | 1✅ | 622ms | ||
PersonController | 1✅ | 414ms | ||
PersonService with enable client list | 5✅ | 536ms | ||
podkrepiTypes | 1✅ | 104ms | ||
PrismaService | 1✅ | 133ms | ||
ProviderLoginController | 2✅ | 719ms | ||
RecurringDonationController | 1✅ | 301ms | ||
RecurringDonationService | 5✅ | 420ms | ||
RefreshController | 2✅ | 487ms | ||
RegisterController | 2✅ | 697ms | ||
StripeController | 6✅ | 1❌ | 1s | |
StripePaymentService | 15✅ | 6s | ||
StripeService | 2✅ | 705ms | ||
SupportController | 3✅ | 701ms | ||
SupportService | 1✅ | 396ms | ||
TransferController | 11✅ | 861ms | ||
TransferService | 1✅ | 192ms | ||
VaultController | 8✅ | 754ms | ||
VaultService | 4✅ | 808ms | ||
WithdrawalController | 15✅ | 1s | ||
WithdrawalService | 1✅ | 484ms |
❌ StripeController
StripeController should be defined
✅ StripeController should be defined
StripeController createCheckoutSession should create stripe session for active campaign
✅ StripeController createCheckoutSession should create stripe session for active campaign
StripeController createCheckoutSession should not create stripe session for completed campaign
✅ StripeController createCheckoutSession should not create stripe session for completed campaign
StripeController createCheckoutSession should create stripe session for completed campaign if allowed
✅ StripeController createCheckoutSession should create stripe session for completed campaign if allowed
StripeController should request refund for donation
✅ StripeController should request refund for donation
StripeController should not call setupintents.update if campaign can't accept donations
❌ StripeController should not call setupintents.update if campaign can't accept donations
Error: expect(received).rejects.toThrow(expected)
StripeController should subscription without creating new customer,products
✅ StripeController should subscription without creating new customer,products
Annotations
Check failure on line 40 in apps/api/src/stripe/stripe.service.ts
github-actions / JEST Tests
StripeController ► StripeController should not call setupintents.update if campaign can't accept donations ► StripeController should not call setupintents.update if campaign can't accept donations
Failed test found in:
test-results.xml
Error:
Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)
Expected message: "Campaign cannot accept donations in state: complete"
Received message: "this.stripeClient.setupIntents.update is not a function"
38 | if (!inputDto.metadata.campaignId)
39 | throw new BadRequestException('campaignId is missing from metadata')
> 40 | return await this.stripeClient.setupIntents.update(id, inputDto, { idempotencyKey })
| ^
41 | }
42 | /**
43 | * Create a payment intent for a donation
at StripeService.updateSetupIntent (apps/api/src/stripe/stripe.service.ts:40:49)
at StripeController.updateSetupIntent (apps/api/src/stripe/stripe.controller.ts:86:31)
at Object.<anonymous> (apps/api/src/stripe/stripe.controller.spec.ts:215:29)
at Object.toThrow (/home/runner/work/api/api/node_modules/expect/build/index.js:210:22)
at Object.<anonymous> (/home/runner/work/api/api/apps/api/src/stripe/stripe.controller.spec.ts:215:88)
at Promise.then.completed (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:293:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:226:10)
at _callCircusTest (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/run.js:297:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/run.js:233:3)
at _runTestsForDescribeBlock (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/run.js:135:9)
at _runTestsForDescribeBlock (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/run.js:130:9)
at run (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/run.js:68:3)
at runAndTransformResultsToJestFormat (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/api/api/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/api/api/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/api/api/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/api/api/node_modules/jest-runner/build/testWorker.js:106:12)
Loading