Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zod-mock): [#172] enhance mockeryMapper #230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elijahkimani
Copy link

Description:

I noted that the mockery mapper passed in the generate mock function options is not being used exhaustively. At the moment, only faker functions that generate strings seem to be called and used. Faker functions for other primitive values are not used

This pull request addresses the issues with the mockery mapper by handling the other primitive values (date, number and boolean)

Attempts to address issue #172

The changes include:

  • Support use of number faker function added to the custom mockery mapper provided
  • Support use of boolean faker function added to the custom mockery mapper provided
  • Support use of date faker function added to the custom mockery mapper provided
  • Unit tests for the above use cases

Copy link

nx-cloud bot commented Nov 1, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit cd50715. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

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.

1 participant