Vinicius Gonçalves
Vinicius Gonçalves
DTDrizzle Team
Created by giovannibenussi on 2/1/2024 in #help
Error with NestJS + Turso in-memory database during testing
No. Unfortunately I didn't get an opportunity to work on it.
14 replies
DTDrizzle Team
Created by giovannibenussi on 2/1/2024 in #help
Error with NestJS + Turso in-memory database during testing
I'm running unit tests in nestjs. Before each test I create a drizzle LibSqlDatabase and execute the migrations against it. The thing is, when using in-memory databases, it complains about inexistent tables. By Monday I'll bring a reproducible example so we can discuss 🙂
14 replies
DTDrizzle Team
Created by giovannibenussi on 2/1/2024 in #help
Error with NestJS + Turso in-memory database during testing
I need it to be up and running! Running the migrations is just the prepatory step before executing the tests
14 replies
DTDrizzle Team
Created by giovannibenussi on 2/1/2024 in #help
Error with NestJS + Turso in-memory database during testing
Greetings! @giovannibenussi brought the issue on my behalf when I thought it could be Turso's libsql fault. I thought I could bring more info about the issue so we could understand what's going on: - The factory method is called before each test of the test suite - After the factory method being called, migrations are executed in said mock database using drizzle-kit migrate - The test fails due to: [LibsqlError: SQLITE_ERROR: no such table: users] If you need more info, feel free to ping me 🙂
14 replies
DTDrizzle Team
Created by softgrip on 9/2/2023 in #help
In memory tests with libsql?
Have you found an answer?
4 replies