joelanman, 1 month ago has anyone used Jest and Knex in Node? I've been banging my head against this issue for ages, and googling gets me nowhere. I just get Unable to acquire a connection every time. My actual code works fine, it's just in Jest that it fails. https://github.com/knex/knex/issues/6062 #NodeJS
has anyone used Jest and Knex in Node? I've been banging my head against this issue for ages, and googling gets me nowhere. I just get Unable to acquire a connection every time.
Unable to acquire a connection
My actual code works fine, it's just in Jest that it fails.
https://github.com/knex/knex/issues/6062
#NodeJS
joelanman, 1 month ago sigh, I wasn't using dotenv correctly with Jest, you have to add it to the config like this: setupFiles: ["dotenv/config"]
sigh, I wasn't using dotenv correctly with Jest, you have to add it to the config like this:
dotenv
setupFiles: ["dotenv/config"]
Add comment