I have created a cypress 'task' to grab data from DB , I dont want to store credentials for configDB in index file and wanted to pass it through cypress.json . Cypress.env didnt work is there a workaround ?
const configDB = {
server: "xxx",
port: xxx,
domain: "US",
user: "username",
password: "password",
database: "database",
driver: "tedious",
options: {
enableArithAbort: true,
},
};
const sql = require("mssql");