Next.js Discord

Discord Forum

co-locate mocks in same package or create a separate package?

Unanswered
Gg posted this in #help-forum
Open in Discord
GgOP
I have a package with schemas and types that is shared between my backend and frontend. I want to create mocks/stubs for these for testing purposes, would it be best to co-locate these in the same package as close to the schemas/types as possible, or should I create a separate package for all stubs/mocks?

0 Replies