K
Kysely15mo 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
elitanOP15mo ago
Moved to vitest fixed it
Igal
Igal15mo ago
That's odd, I used Kysely with jest a few months ago. 🤷🏻‍♀️
Want results from more Discord servers?
Add your server