Run redwood tests without resetting the database

Is there any command or flag to run redwood tests without running the Prisma reset DB command?

Redwood currently automatically resets the DB every time the test command is run.

I’d really like to know if there is a way to do this too.
When working on a specific file and iterating on my tests and code I am running the tests numerous times it’d be great not to have to wait for the DB to reset when the code I am testing doesn’t interact with the DB

Hello! There’s a --no-db-push flag you could try:

yarn rw test api --no-db-push
1 Like

Perfect, that brought the time taken to re-run a single test in watch mode down from about 8 seconds to effectively instant.

Thank you!

1 Like