K
Kysely9mo ago
elitan

Kysely doesn't work in jest/test environment

For some reason Kysely does not work when I'm running test via Jest. I have a simple Express application and all db.selectFrom(... commands just times out. I tried to log things via:
log(event) {
console.log(event);
log(event) {
console.log(event);
but nothing is logged. When I start the server as usuall, Kysely works as expected. Any idea on how to debug or what could cause this issue?
2 Replies
elitan
elitan9mo ago
Moved to vitest fixed it
Igal
Igal9mo ago
That's odd, I used Kysely with jest a few months ago. 🤷🏻‍♀️