Skip to content

Commit 1123bd2

Browse files
committed
fix(db): use relative import for nanoid in mock builder
The ~ path alias doesn't resolve when running seed.ts with esbuild-register
1 parent bc255ca commit 1123bd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/__mocks__/audit-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { build, perBuild } from '@jackfranklin/test-data-bot'
22
import { AuditLog } from '@prisma/client'
33
import { AUDIT_ACTION, AUDIT_ENTITY_TYPE } from '../enum'
4-
import { generateId } from '~/utils/nanoid'
4+
import { generateId } from '../../utils/nanoid'
55

66
export const auditLogBuilder = build<Omit<AuditLog, 'id' | 'createdAt'>>({
77
fields: {

0 commit comments

Comments
 (0)