Skip to content

[Job Launcher][Server] JobService tests - #3373

Merged
flopez7 merged 4 commits into
developfrom
feat/job-launcher/job-service-tests
Jun 3, 2025
Merged

[Job Launcher][Server] JobService tests#3373
flopez7 merged 4 commits into
developfrom
feat/job-launcher/job-service-tests

Conversation

@flopez7

@flopez7 flopez7 commented May 30, 2025

Copy link
Copy Markdown
Contributor

Issue tracking

#3071

Context behind the change

  • Created tests for JobService
  • Added checks for stripeCustomerId in JobService to ensure proper handling of users without a Stripe account.
  • Updated PaymentService to throw errors when stripeCustomerId is not present.
  • Modified UserEntity to allow stripeCustomerId to be nullable.
  • Created migration to enforce non-null constraints on certain fields in the Job entity.
  • Refactored fixtures for jobs and users to accommodate changes in the structure and ensure proper testing.
  • Enhanced test cases in PaymentService and ManifestService to reflect the new logic and structure.

How has this been tested?

Ran unit tests

Release plan

Deploy migration.

Potential risks; What to monitor; Rollback plan

None

- Added checks for `stripeCustomerId` in JobService to ensure proper handling of users without a Stripe account.
- Updated PaymentService to throw errors when `stripeCustomerId` is not present.
- Modified UserEntity to allow `stripeCustomerId` to be nullable.
- Created migration to enforce non-null constraints on certain fields in the Job entity.
- Refactored fixtures for jobs and users to accommodate changes in the structure and ensure proper testing.
- Enhanced test cases in PaymentService and ManifestService to reflect the new logic and structure.
@vercel

vercel Bot commented May 30, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2025 4:19pm
faucet-server ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2025 4:19pm
human-app ⬜️ Skipped (Inspect) Jun 2, 2025 4:19pm
human-dashboard-frontend ⬜️ Skipped (Inspect) Jun 2, 2025 4:19pm
staking-dashboard ⬜️ Skipped (Inspect) Jun 2, 2025 4:19pm

@flopez7 flopez7 self-assigned this May 30, 2025
@flopez7
flopez7 requested review from Dzeranov and dnechay May 30, 2025 13:59
@vercel
vercel Bot temporarily deployed to Preview – human-dashboard-frontend May 30, 2025 15:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – human-app May 30, 2025 15:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – staking-dashboard May 30, 2025 15:57 Inactive
Comment thread packages/apps/job-launcher/server/test/fixtures/storage.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
Comment thread packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts Outdated
@vercel
vercel Bot temporarily deployed to Preview – human-app June 2, 2025 15:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – staking-dashboard June 2, 2025 15:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – human-dashboard-frontend June 2, 2025 15:42 Inactive
@flopez7
flopez7 requested a review from dnechay June 2, 2025 15:52
@vercel
vercel Bot temporarily deployed to Preview – human-dashboard-frontend June 2, 2025 16:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – staking-dashboard June 2, 2025 16:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – human-app June 2, 2025 16:18 Inactive
@flopez7
flopez7 merged commit 1fbd6f8 into develop Jun 3, 2025
@flopez7 flopez7 mentioned this pull request Jun 3, 2025
17 tasks
@flopez7
flopez7 deleted the feat/job-launcher/job-service-tests branch June 24, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants