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

update float to new float support of faker.js #234

Open
edumaciel10 opened this issue Sep 3, 2023 · 0 comments
Open

update float to new float support of faker.js #234

edumaciel10 opened this issue Sep 3, 2023 · 0 comments

Comments

@edumaciel10
Copy link

pass some schema that contains float values

import { install, fake } from 'yup-schema-faker'
import { faker } from '@faker-js/faker'
import { yup } from 'yup';

install(faker)


const getPayload = () => fake(yup.object({
  someNumber: yup.number(),
}))

console.log(getPayload());

image

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

No branches or pull requests

1 participant