Closed thebspin closed 3 weeks ago
pnpm drizzle-kit push
creates a new process (different memory) so the migrations applied will not effect the database in memory for the tests.
For :memory:
to work for tests, you would need a way to run the migrations programmatically within the same process as the tests.
Hi,
I've found out that instead of providing an url you can also set the database url to
:memory:
. It seems to connect but it also seems thatexecSync("pnpm drizzle-kit push");
is not doing anything. I assume this because of this error that i'm getting:Any possible idea what's going wrong?