How can I create an empty DB for testing?

Viewed 69

I'm writing some integration tests for my RESTful API that uses Prisma within.

As part of those tests I'd like to work with a DB that has a known state - an empty one is simplest.

AFAICS The JavaScript/TypeScript API lacks an equivalent of npx prisma db push --force-reset. How does the community recommend I tackle this requirement in code, w/o creating a child process?

Thanks!

0 Answers
Related