Skip to content

fix: Generate Stripe idempotency keys server-side #1047

fix: Generate Stripe idempotency keys server-side

fix: Generate Stripe idempotency keys server-side #1047

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

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✅ 620ms
AccountService 1✅ 471ms
AffiliateController 10✅ 1s
AffiliateService 1✅ 188ms
AppController 1✅ 199ms
AppService 1✅ 175ms
AuthService 20✅ 2s
BankaccountController 1✅ 575ms
BankaccountService 1✅ 157ms
BankTransactionsController 4✅ 1s
BankTransactionsFileController 1✅ 1s
BankTransactionsFileService 1✅ 531ms
BankTransactionsService 1✅ 560ms
BenefactorController 1✅ 352ms
BenefactorService 1✅ 172ms
BeneficiaryController 8✅ 501ms
BeneficiaryService 1✅ 173ms
CampaignApplicationController 10✅ 1s
CampaignApplicationService 25✅ 2s
CampaignController 18✅ 2s
CampaignFileController 4✅ 858ms
CampaignFileService 1✅ 667ms
CampaignFileService 1✅ 660ms
CampaignNewsController 1✅ 478ms
CampaignNewsFileController 9✅ 1s
CampaignNewsService 1✅ 501ms
CampaignService 2✅ 555ms
CampaignTypesController 7✅ 486ms
CampaignTypesService 1✅ 172ms
CityController 7✅ 385ms
CityService 1✅ 230ms
CompanyController 1✅ 224ms
CompanyService 1✅ 186ms
CoordinatorController 5✅ 350ms
CoordinatorService 4✅ 209ms
CountryController 8✅ 619ms
CountryService 1✅ 178ms
DonationsController 4✅ 1s
DonationsService 1✅ 573ms
DonationWishController 1✅ 433ms
DonationWishService 1✅ 165ms
EmailService enabled 7✅ 411ms
ExpensesController 7✅ 1s
ExpensesService 1✅ 365ms
HealthController 1✅ 299ms
ImportTransactionsTask 15✅ 5s
ImportTransactionsTask 2✅ 737ms
InfoRequestController 1✅ 537ms
InfoRequestService 1✅ 324ms
IrregularityController 1✅ 522ms
IrregularityFileController 1✅ 575ms
IrregularityFileService 1✅ 427ms
IrregularityService 1✅ 417ms
LoginController 2✅ 811ms
MarketingNotificationsController 23✅ 4s
OrganizerController 1✅ 287ms
OrganizerService 1✅ 364ms
PaypalController 1✅ 1s
PaypalService 1✅ 650ms
PersonController 1✅ 432ms
PersonService with enable client list 5✅ 473ms
podkrepiTypes 1✅ 100ms
PrismaService 1✅ 180ms
ProviderLoginController 2✅ 462ms
RecurringDonationController 1✅ 451ms
RecurringDonationService 5✅ 560ms
RefreshController 2✅ 440ms
RegisterController 2✅ 636ms
StripeController 6✅ 1❌ 1s
StripePaymentService 15✅ 6s
StripeService 2✅ 731ms
SupportController 3✅ 583ms
SupportService 1✅ 381ms
Template service 1✅ 533ms
TransferController 11✅ 787ms
TransferService 1✅ 187ms
VaultController 8✅ 685ms
VaultService 4✅ 773ms
WithdrawalController 15✅ 1s
WithdrawalService 1✅ 432ms

❌ 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: {"message":"expect(received).rejects.toThrow()\n\nReceived promise resolved instead of rejected\nResolved to value: \"unique_intent\""}

Annotations

Check failure on line 239 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: {"message":"expect(received).rejects.toThrow()\n\nReceived promise resolved instead of rejected\nResolved to value: \"unique_intent\""}
Raw output
Error: {"message":"expect(received).rejects.toThrow()\n\nReceived promise resolved instead of rejected\nResolved to value: \"unique_intent\""}
    at Object.<anonymous> (/home/runner/work/api/api/apps/api/src/stripe/stripe.controller.spec.ts:239:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)