Add skeleton

This commit is contained in:
2025-09-17 13:28:50 +07:00
parent f4ab31b436
commit 945e0083d2
5 changed files with 147 additions and 0 deletions

13
helpers/test_helper.js Normal file
View File

@@ -0,0 +1,13 @@
const pool = require("../config");
const usersInDb = async () => {
const users = await pool.query("SELECT * FROM USERS");
return users.rows;
};
const productsInDb = async () => {
const products = await pool.query("SELECT * FROM products");
return products.rows;
};
module.exports = { usersInDb, productsInDb };