Skip to content

Commit

Permalink
Merge pull request #13 from agustif/feat/update-faker
Browse files Browse the repository at this point in the history
feat: update to use faker 7.x -> 8.x
  • Loading branch information
luisrudge authored Sep 27, 2023
2 parents b42d5f1 + cf6e292 commit 2865c00
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 181 deletions.
10 changes: 5 additions & 5 deletions example/prisma/fake-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function fakeUser() {
return {
email: faker.internet.email(),
name: faker.name.fullName(),
age: faker.datatype.number({ min: 0, max: 99 }),
age: faker.number.int({ min: 0, max: 99 }),
settings: fakeSettings(),
maybeString: undefined,
status: faker.helpers.arrayElement([
Expand All @@ -21,7 +21,7 @@ export function fakeUserComplete() {
id: faker.datatype.uuid(),
email: faker.internet.email(),
name: faker.name.fullName(),
age: faker.datatype.number({ min: 0, max: 99 }),
age: faker.number.int({ min: 0, max: 99 }),
settings: fakeSettings(),
maybeString: undefined,
status: faker.helpers.arrayElement([
Expand All @@ -38,7 +38,7 @@ export function fakeProfile() {
}
export function fakeProfileComplete() {
return {
id: faker.datatype.number(),
id: faker.number.int(),
someConfiguration: faker.datatype.boolean(),
userId: faker.datatype.uuid(),
};
Expand All @@ -50,8 +50,8 @@ export function fakeProfileSettings() {
}
export function fakeProfileSettingsComplete() {
return {
id: faker.datatype.number(),
id: faker.number.int(),
someConfiguration: faker.datatype.boolean(),
profileId: faker.datatype.number(),
profileId: faker.number.int(),
};
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"release": "release-it"
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@faker-js/faker": "^8.0.2",
"@prisma/client": "^5.0.0",
"@prisma/generator-helper": "^5.0.0",
"@prisma/internals": "^5.0.0",
Expand Down
Loading

0 comments on commit 2865c00

Please sign in to comment.