fix: Generate Stripe idempotency keys server-side #1041
GitHub Actions / JEST Tests
failed
Dec 9, 2024 in 1s
327 passed, 1 failed and 0 skipped
❌ 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✅ | 579ms | ||
AccountService | 1✅ | 489ms | ||
AffiliateController | 10✅ | 1s | ||
AffiliateService | 1✅ | 186ms | ||
AppController | 1✅ | 176ms | ||
AppService | 1✅ | 158ms | ||
AuthService | 20✅ | 2s | ||
BankaccountController | 1✅ | 604ms | ||
BankaccountService | 1✅ | 191ms | ||
BankTransactionsController | 4✅ | 1s | ||
BankTransactionsFileController | 1✅ | 956ms | ||
BankTransactionsFileService | 1✅ | 670ms | ||
BankTransactionsService | 1✅ | 583ms | ||
BenefactorController | 1✅ | 334ms | ||
BenefactorService | 1✅ | 174ms | ||
BeneficiaryController | 8✅ | 512ms | ||
BeneficiaryService | 1✅ | 157ms | ||
CampaignApplicationController | 10✅ | 909ms | ||
CampaignApplicationService | 25✅ | 2s | ||
CampaignController | 18✅ | 2s | ||
CampaignFileController | 4✅ | 1s | ||
CampaignFileService | 1✅ | 655ms | ||
CampaignFileService | 1✅ | 643ms | ||
CampaignNewsController | 1✅ | 623ms | ||
CampaignNewsFileController | 9✅ | 1s | ||
CampaignNewsService | 1✅ | 464ms | ||
CampaignService | 2✅ | 541ms | ||
CampaignTypesController | 7✅ | 460ms | ||
CampaignTypesService | 1✅ | 202ms | ||
CityController | 7✅ | 391ms | ||
CityService | 1✅ | 194ms | ||
CompanyController | 1✅ | 254ms | ||
CompanyService | 1✅ | 168ms | ||
CoordinatorController | 5✅ | 426ms | ||
CoordinatorService | 4✅ | 199ms | ||
CountryController | 8✅ | 583ms | ||
CountryService | 1✅ | 186ms | ||
DonationsController | 4✅ | 1s | ||
DonationsService | 1✅ | 739ms | ||
DonationWishController | 1✅ | 358ms | ||
DonationWishService | 1✅ | 270ms | ||
EmailService enabled | 7✅ | 382ms | ||
ExpensesController | 7✅ | 1s | ||
ExpensesService | 1✅ | 449ms | ||
HealthController | 1✅ | 269ms | ||
ImportTransactionsTask | 15✅ | 4s | ||
ImportTransactionsTask | 2✅ | 811ms | ||
InfoRequestController | 1✅ | 488ms | ||
InfoRequestService | 1✅ | 354ms | ||
IrregularityController | 1✅ | 574ms | ||
IrregularityFileController | 1✅ | 612ms | ||
IrregularityFileService | 1✅ | 455ms | ||
IrregularityService | 1✅ | 321ms | ||
LoginController | 2✅ | 718ms | ||
MarketingNotificationsController | 23✅ | 5s | ||
OrganizerController | 1✅ | 323ms | ||
OrganizerService | 1✅ | 245ms | ||
PaypalController | 1✅ | 877ms | ||
PaypalService | 1✅ | 786ms | ||
PersonController | 1✅ | 454ms | ||
PersonService with enable client list | 5✅ | 446ms | ||
podkrepiTypes | 1✅ | 85ms | ||
PrismaService | 1✅ | 151ms | ||
ProviderLoginController | 2✅ | 524ms | ||
RecurringDonationController | 1✅ | 352ms | ||
RecurringDonationService | 5✅ | 435ms | ||
RefreshController | 2✅ | 571ms | ||
RegisterController | 2✅ | 681ms | ||
StripeController | 6✅ | 1❌ | 1s | |
StripePaymentService | 15✅ | 6s | ||
StripeService | 2✅ | 659ms | ||
SupportController | 3✅ | 696ms | ||
SupportService | 1✅ | 345ms | ||
Template service | 1✅ | 734ms | ||
TransferController | 11✅ | 768ms | ||
TransferService | 1✅ | 163ms | ||
VaultController | 8✅ | 716ms | ||
VaultService | 4✅ | 854ms | ||
WithdrawalController | 15✅ | 1s | ||
WithdrawalService | 1✅ | 561ms |
❌ 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
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)
Loading