Skip to content

fix: Generate Stripe idempotency keys server-side #1043

fix: Generate Stripe idempotency keys server-side

fix: Generate Stripe idempotency keys server-side #1043

GitHub Actions / JEST Tests failed Dec 9, 2024 in 1s

327 passed, 1 failed and 0 skipped

Tests failed

❌ test-results.xml

328 tests were completed in 21s with 327 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AccountController 2✅ 637ms
AccountService 1✅ 505ms
AffiliateController 10✅ 1s
AffiliateService 1✅ 197ms
AppController 1✅ 176ms
AppService 1✅ 135ms
AuthService 20✅ 2s
BankaccountController 1✅ 546ms
BankaccountService 1✅ 202ms
BankTransactionsController 4✅ 1s
BankTransactionsFileController 1✅ 2s
BankTransactionsFileService 1✅ 682ms
BankTransactionsService 1✅ 650ms
BenefactorController 1✅ 368ms
BenefactorService 1✅ 176ms
BeneficiaryController 8✅ 578ms
BeneficiaryService 1✅ 163ms
CampaignApplicationController 10✅ 913ms
CampaignApplicationService 25✅ 2s
CampaignController 18✅ 1s
CampaignFileController 4✅ 1000ms
CampaignFileService 1✅ 657ms
CampaignFileService 1✅ 674ms
CampaignNewsController 1✅ 551ms
CampaignNewsFileController 9✅ 1s
CampaignNewsService 1✅ 522ms
CampaignService 2✅ 507ms
CampaignTypesController 7✅ 572ms
CampaignTypesService 1✅ 218ms
CityController 7✅ 461ms
CityService 1✅ 203ms
CompanyController 1✅ 307ms
CompanyService 1✅ 156ms
CoordinatorController 5✅ 358ms
CoordinatorService 4✅ 254ms
CountryController 8✅ 493ms
CountryService 1✅ 195ms
DonationsController 4✅ 1s
DonationsService 1✅ 661ms
DonationWishController 1✅ 297ms
DonationWishService 1✅ 159ms
EmailService enabled 7✅ 590ms
ExpensesController 7✅ 1s
ExpensesService 1✅ 450ms
HealthController 1✅ 345ms
ImportTransactionsTask 15✅ 4s
ImportTransactionsTask 2✅ 691ms
InfoRequestController 1✅ 518ms
InfoRequestService 1✅ 341ms
IrregularityController 1✅ 543ms
IrregularityFileController 1✅ 571ms
IrregularityFileService 1✅ 412ms
IrregularityService 1✅ 330ms
LoginController 2✅ 678ms
MarketingNotificationsController 23✅ 4s
OrganizerController 1✅ 338ms
OrganizerService 1✅ 235ms
PaypalController 1✅ 1s
PaypalService 1✅ 741ms
PersonController 1✅ 483ms
PersonService with enable client list 5✅ 446ms
podkrepiTypes 1✅ 98ms
PrismaService 1✅ 155ms
ProviderLoginController 2✅ 428ms
RecurringDonationController 1✅ 323ms
RecurringDonationService 5✅ 517ms
RefreshController 2✅ 589ms
RegisterController 2✅ 837ms
StripeController 6✅ 1❌ 1s
StripePaymentService 15✅ 6s
StripeService 2✅ 736ms
SupportController 3✅ 697ms
SupportService 1✅ 310ms
Template service 1✅ 533ms
TransferController 11✅ 747ms
TransferService 1✅ 163ms
VaultController 8✅ 658ms
VaultService 4✅ 807ms
WithdrawalController 15✅ 1s
WithdrawalService 1✅ 660ms

❌ 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 no campaignId is provided
  ✅ StripeController should not call setupintents.update if no campaignId is provided
StripeController should  subscription without creating new customer,products
  ❌ StripeController should  subscription without creating new customer,products
	Error: expect(received).toResolve()

Annotations

Check failure on line 230 in apps/api/src/stripe/stripe.controller.spec.ts

See this annotation in the file changed.

@github-actions github-actions / JEST Tests

StripeController ► StripeController should subscription without creating new customer,products ► StripeController should subscription without creating new customer,products

Failed test found in:
  test-results.xml
Error:
  Error: expect(received).toResolve()
Raw output
Error: expect(received).toResolve()

Expected promise to resolve, however it rejected.

    at Object.<anonymous> (/home/runner/work/api/api/apps/api/src/stripe/stripe.controller.spec.ts:230:63)
    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)