How to mock the connect, query, and release methods of pool in postgreSql using sinon?

后端 未结 0 673
旧时难觅i
旧时难觅i 2021-01-28 23:25

I am having a function, where I am doing some db operations. Like,

const { Pool } = require("pg");

const pool = new Pool({
  connectionString: `some co         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题