Skip to content

Commit

Permalink
chore: update prisma-factory (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmouk authored Dec 14, 2024
1 parent bac01a1 commit 6b30ad7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"@factory-js/factory": "^0.4.0",
"@factory-js/prisma-factory": "^0.2.0",
"@factory-js/prisma-factory": "^0.2.1",
"@faker-js/faker": "^9.0.0",
"@minute/eslint-config": "workspace:*",
"@minute/tsconfig": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/prisma/vitest/factories/folder-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const folderFactory = defineFolderFactory(db)
.props({
id: () => faker.string.uuid(),
color: () => faker.internet.color(),
parentId: async ({ vars }) => (await vars.parent)?.id ?? null,
})
.vars({
user: async () => await userFactory.create(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { db } from "@minute/prisma/vitest/helpers";
export const folderHierarchyFactory = defineFolderHierarchyFactory(db)
.props({
id: () => faker.string.uuid(),
ancestorId: async ({ vars }) => (await vars.ancestor)?.id ?? null,
})
.vars({
user: async () => await userFactory.create(),
Expand Down
39 changes: 16 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b30ad7

Please sign in to comment.