skip to Main Content

Can't connect to MySQL database when testing in Cypress (mysql2)

I get an error when running the integration tests: 0 passing (17s) 1 failure 1) Registration page register new users allowed and update status in the database: TypeError: Net.connect is not a function at new Connection (webpack:///./node_modules/mysql2/lib/connection.js:50:0) at ./node_modules/mysql2/index.js.exports.createConnection (webpack:///./node_modules/mysql2/index.js:10:0)…

VIEW QUESTION
Back To Top
Search