Skip to content

Conversation

@kjellmorten
Copy link

I went ahead and implemented nanoid support in a forked version because we need it in a project, but would love to have that included in the official version.

A couple of comments:

  • I used nanoid v3, because the newer versions require ESM. I still think this should be good enough for mocking purposes.
  • I altered the Profile model to have Id String @id @default(nanoid()), to be able to test this. The id of this model was not used in any tests, so it had minimal impact on other tests and the general setup.

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