I started using Prisma migrations for testing, such that I am resetting and seeding my database between tests. Locally, this runs great! Unfortunately, in CI, where I am running on a single processor, this is causing timeouts.
If I could trigger the migration reset from within the NodeJS event loop, it would all work fine. As it is, I have to execute the CLI using child_process, which works outside of the single-thread event-loop.
Is there a better way to accomplish what I am trying to do?