{"_id":"cypress-mysql","_rev":"9-98cc365f30dadf0dcda4c18245c12ad9","name":"cypress-mysql","dist-tags":{"latest":"2.1.1","rc":"2.1.1-rc.0"},"versions":{"1.0.0":{"name":"cypress-mysql","version":"1.0.0","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@1.0.0","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"987dd693aa4ad6b3968c0ff24834b0ad1af00876","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-1.0.0.tgz","fileCount":7,"integrity":"sha512-UEy/jwzKEtctyWSQbgGBPsNJH0yCGaKN/xFZsNHAdjeBGOvI1prnhrsTVnOxclPwRmESnlTmap5P52u2Vl4TjA==","signatures":[{"sig":"MEUCIQDxXIx3hanJR5ZOiuKpMgW5c0WEdNeTDEZdxHnObM4CZAIgM/6BQuz/uKSjruKxXoPm5gN2+yw5kSf6Tg4uVedFEdU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9501,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyI1gCRA9TVsSAnZWagAAzmkP/RydlA2cyivud5h3W2LK\nHQcl3OP1pFNhVPTwACW9vB5ibuete54PQb62MUNMbvBeXElaKIYvm2jYeOYU\nBnE0wA3cvp7unkI4OmeDK8ewXhs5uVaEh4ubU/Bsm7wDkk4hBNA09gkP0Gi8\nQiCNTJY9Mc4RQSFLUFg81qhc2uomtWK4gtho/uDkx9nBwerugUxczLIKqimU\njL6FT0NTGkgPbRSc+QqNfCiT0AAIrJ4is8ZLdjzYr837J4hhxPUNBIcelKIs\nKbXjyLrD/MgI6lu9pxrGm89LAnrRFHUXAZdyT86d+raWCumrJM4jjgo+ha/h\nbXXhcxmNcnTyC/DiiWUzTWHI0WflX67nVC1Uy9EgM/DEW3Yuhx37Bv8esfPm\n6yeM4BYK7bV7wjn5+ba8xJGFVX3um/hqouLTeE22ROVgU3I3hVO91Pf4UT3V\nucRbF0J+aBNTBoUESuAHUJ3PWQED8pQO4b+kjGczCQO0HUTT7TXUK2b0rr78\nU1duvPAp0Lv4scS/DVwdFP0gSG1BKcnoBEBootphxUDOhXkyV7anMhO8Ytpv\nB97m7taPvmTKDie+U3ap/ftmoCXPcwctHgWYGIx2d1ZeOHHn6loWzNaF2eqJ\nGNMmXBdIwBbs0HncgfQkKr/NDiLr+vem98rp7wyKa1S7ac/5br7o4xg62kOS\nTjYD\r\n=201m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"85ccacd71868dc92b9e05390411073f849dc8dbd","scripts":{"test":"mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"npx prettier --write src/"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"8.1.4","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"14.17.6","dependencies":{"mysql2":"^2.3.3"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.1.3","prettier":"2.5.1","typescript":"^4.5.2","@types/node":"^17.0.4","@types/mocha":"^9.0.0","@types/cypress":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_1.0.0_1640533344243_0.7785807413501651","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"cypress-mysql","version":"1.0.1","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@1.0.1","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"7f8681519ac2f25ccbbef00c776e6a333ee6c384","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-1.0.1.tgz","fileCount":5,"integrity":"sha512-mWwr0PPjXV8sqMfFp/DLjhpGm6Zxy01PB7RYTW44FVDwvz/RLnNBmzNxxUxjkc49JwrQVx2ESQ9mK1zOd3CTAA==","signatures":[{"sig":"MEQCIFvDhHnbm+D5T/Mhnuz8y61IaSsi697xp95Ag1trRCCKAiAl+gLufOOmR6Oz5agxCiRDemSBkANgZAcEUQBzyGJB9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9960},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"1d3b779457d2199f0c187b2e508c21bbc27a8391","scripts":{"test":"mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"npx prettier --write src/","prepublish":"npm rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"9.8.1","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"18.11.0","dependencies":{"mysql2":"3.6.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","prettier":"3.0.3","typescript":"5.2.2","@types/node":"20.8.9","@types/mocha":"10.0.3"},"peerDependencies":{"cypress":">=12"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_1.0.1_1698577357273_0.8785960212955952","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"cypress-mysql","version":"1.0.2","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@1.0.2","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"ce13db265e4345a1d7e4d11464b2fa9840fcf94b","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-1.0.2.tgz","fileCount":5,"integrity":"sha512-Wk+6MSK2cW9ZVaK1JAYmBKUl9SkvljinITSC1/PqTxMerfnh/0GsCiD2UqDnovECzlTI/OnuXVgOOjq5OnS0Xw==","signatures":[{"sig":"MEYCIQCOBWNq56eSk/GvOggFWTqal1wzxaJGhNYFGVnxzrJfAgIhAJDKwi19YM3RSzxC2ElS3/dl6w9Fi4RERfA9eJvgrhut","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9989},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"441a80ce88fbeaab367a253b92d9b8383c0f3e4a","scripts":{"test":"mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"npx prettier --write src/","preversion":"rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"9.8.1","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"18.11.0","dependencies":{"mysql2":"3.6.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","rimraf":"^5.0.5","prettier":"3.0.3","typescript":"5.2.2","@types/node":"20.8.9","@types/mocha":"10.0.3"},"peerDependencies":{"cypress":">=12"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_1.0.2_1698578429995_0.5556596113104177","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"cypress-mysql","version":"1.0.3","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@1.0.3","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"b1bd7c4ab85c1dc4e5b7e9acd94c6738d050a0d4","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-1.0.3.tgz","fileCount":5,"integrity":"sha512-nKJ3DJbio2smWZ7IfCuVtlWh136W0ikfTMMibLQxEyNOUYqASl7rlg8JssmLiePDvkGgq53+ZEwK0ibTlIJvcA==","signatures":[{"sig":"MEUCIFKIshvpav8LDzuw6OZeootuHUAwZ7UZQCL8a9PBbPnIAiEAiTuLht1hXRnurv/vzlMptk7tIY05RVwJCLMolMLuITA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10062},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"258d1e418cf9ea04e5eaeb6919c1c8fbe7e43c0d","scripts":{"test":"mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"npx prettier --write src/","preversion":"rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"10.8.2","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"mysql2":"3.11.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.7.0","rimraf":"^6.0.1","prettier":"3.3.3","typescript":"5.5.4","@types/node":"22.1.0","@types/mocha":"10.0.7"},"peerDependencies":{"cypress":">=12"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_1.0.3_1723073454186_0.2031412663615051","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"cypress-mysql","version":"1.0.4","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@1.0.4","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"53e3b7871692f626a3a6c4b3a8db698cef9cb893","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-1.0.4.tgz","fileCount":5,"integrity":"sha512-OZj5IFLFDqeDxQKFS3muA0tm3DzC9CC8QSzxZJHnPXlhTDvCrRDp7XZwD1DCwBn6v/vZeuKJ65bna6Xorp9p9g==","signatures":[{"sig":"MEUCIQC0/3snvGso/gaV2Ctkz4mUIHLq6Iu9ekre0K3b1941/wIgb0zn41quzQWD10dOOHev/Aivn/9m2TvCNpGr883ESFY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10077},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"258d1e418cf9ea04e5eaeb6919c1c8fbe7e43c0d","scripts":{"test":"mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"rimraf dist && npx prettier --write src/","preversion":"rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"10.8.2","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"mysql2":"3.11.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.7.0","rimraf":"^6.0.1","prettier":"3.3.3","typescript":"5.5.4","@types/node":"22.1.0","@types/mocha":"10.0.7"},"peerDependencies":{"cypress":">=12"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_1.0.4_1723073628866_0.02125801327602983","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"cypress-mysql","version":"2.0.0","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@2.0.0","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"96883536e60e8bdae1c570459a303b90fd45f814","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-2.0.0.tgz","fileCount":5,"integrity":"sha512-Mt6y1EKh5B+f5trAVEXBA623Tgp44ggnhT9nR5A9EAXUdOeQbwRd9cPAhhXoEYYb5nchQME40LcqOgEYfn5r2w==","signatures":[{"sig":"MEYCIQCyQ7XywqbU4BGq6jsn9zn8Pz5LD+3RC4QUOy8VqZSIMQIhALgq4aZTnqUlJ9btn2w8CRWoeQnKUpQq/iTDoy9SPjgA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8703},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"78d64b012f2d88548185d320fed8820de9c4f11a","scripts":{"test":"npm run build && mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"rimraf dist && npx prettier --write src/","preversion":"rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"11.14.1","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"24.14.1","dependencies":{"mysql2":"3.22.3"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"11.7.5","rimraf":"6.1.3","prettier":"3.8.3","typescript":"6.0.3","@types/node":"25.8.0","@types/mocha":"10.0.10"},"peerDependencies":{"cypress":">=15"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_2.0.0_1778882074243_0.9046530030853146","host":"s3://npm-registry-packages-npm-production"}},"2.1.1-rc.0":{"name":"cypress-mysql","version":"2.1.1-rc.0","keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"url":"https://jovanilic.com","name":"Jovan Ilić","email":"ilicjovan89@gmail.com"},"license":"MIT","_id":"cypress-mysql@2.1.1-rc.0","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"dist":{"shasum":"3529884a0eb01d594f8dd47d05b28901d70b60f0","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-2.1.1-rc.0.tgz","fileCount":7,"integrity":"sha512-pFbNlElMfCrBtDw/QLxaK7AcWUXspopZGjlmUtPpWguIkmNEPJcEjzuyDX9Wnih7bVSqv5i8qI6WpvY4iW/8Rw==","signatures":[{"sig":"MEUCIQDVuhHsg9mjjxgWQtfg8qHXzlSySRA45ozrfz4L46IenAIgeUvalp5wInBvgpVStKm2iCodb1NintYsUHaRiDlTWiM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7524},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"effb674b6f3dfac26db77a1bd1cbbf752b862799","scripts":{"test":"npm run build && mocha ./dist/test/*.spec.js","build":"tsc -d","prebuild":"rimraf dist && npx prettier --write src/","preversion":"rimraf dist && npm run build && npm run test"},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"repository":{"url":"git+https://github.com/Zaista/cypress-mysql.git","type":"git"},"_npmVersion":"11.15.0","description":"Cypress MySQL plugin","directories":{},"_nodeVersion":"24.14.1","dependencies":{"mysql2":"3.22.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"11.7.5","rimraf":"6.1.3","prettier":"3.8.3","typescript":"6.0.3","@types/node":"25.8.0","@types/mocha":"10.0.10"},"peerDependencies":{"cypress":">=15"},"_npmOperationalInternal":{"tmp":"tmp/cypress-mysql_2.1.1-rc.0_1781337502406_0.7999524286863717","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"cypress-mysql","version":"2.1.1","description":"Cypress MySQL plugin","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"test":"npm run build && mocha ./dist/test/*.spec.js","prebuild":"rimraf dist && npx prettier --write src/","build":"tsc -d","preversion":"rimraf dist && npm run build && npm run test"},"keywords":["cypress","plugin","mysql","sql","database","db"],"author":{"name":"Jovan Ilić","email":"ilicjovan89@gmail.com","url":"https://jovanilic.com"},"license":"MIT","homepage":"https://github.com/Zaista/cypress-mysql","bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"repository":{"type":"git","url":"git+https://github.com/Zaista/cypress-mysql.git"},"dependencies":{"mysql2":"3.22.3"},"peerDependencies":{"cypress":">=15"},"devDependencies":{"@types/mocha":"10.0.10","@types/node":"25.8.0","mocha":"11.7.5","prettier":"3.8.3","rimraf":"6.1.3","typescript":"6.0.3"},"gitHead":"11cfa340ccbe2a93d103e21962a7a34e30b37a4e","_id":"cypress-mysql@2.1.1","_nodeVersion":"24.14.1","_npmVersion":"11.19.0","dist":{"integrity":"sha512-T8bAkjgy4h7fGB1a3RcTxuHt4rP4G6zpVy9+1Ps+8maN2ZWSBTnJwN9oBPV1U0Ea3BNIsZcsXF1q35ZoBnJACg==","shasum":"e46a858cf3c71cd6d685cbb9a06b4106175fbd99","tarball":"https://registry.npmjs.org/cypress-mysql/-/cypress-mysql-2.1.1.tgz","fileCount":7,"unpackedSize":7384,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC8luOc3+znXzJW894PXVbNtzDyxEaBEGZ8N9dKjxz/EAiEAriQXtMV26D63WeKpCJk1k0Ae+LjjyEdMjG2EPSL+6y8="}]},"_npmUser":{"name":"zaista","email":"ilicjovan89@gmail.com"},"directories":{},"maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cypress-mysql_2.1.1_1787509983619_0.3025282922983339"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-26T15:42:24.242Z","modified":"2026-08-23T18:33:03.908Z","1.0.0":"2021-12-26T15:42:24.395Z","1.0.1":"2023-10-29T11:02:37.527Z","1.0.2":"2023-10-29T11:20:30.155Z","1.0.3":"2024-08-07T23:30:54.344Z","1.0.4":"2024-08-07T23:33:49.072Z","2.0.0":"2026-05-15T21:54:34.399Z","2.1.1-rc.0":"2026-06-13T07:58:22.561Z","2.1.1":"2026-08-23T18:33:03.762Z"},"bugs":{"url":"https://github.com/Zaista/cypress-mysql/issues"},"author":{"name":"Jovan Ilić","email":"ilicjovan89@gmail.com","url":"https://jovanilic.com"},"license":"MIT","homepage":"https://github.com/Zaista/cypress-mysql","keywords":["cypress","plugin","mysql","sql","database","db"],"repository":{"type":"git","url":"git+https://github.com/Zaista/cypress-mysql.git"},"description":"Cypress MySQL plugin","maintainers":[{"name":"zaista","email":"ilicjovan89@gmail.com"}],"readme":"# Introduction\r\n\r\nPlugin that allows simple interactions with MySQL database using Cypress commands.\r\n\r\n# Installation\r\n\r\nrun `npm install cypress-mysql`<br>\r\nconfigure (see below)<br>\r\nprofit\r\n\r\n# Usage\r\n\r\n```javascript\r\nconst sql = 'select * from some_table';\r\ncy.query(sql).then((res) => {\r\n  cy.log(res); // outputs json array of selected rows\r\n});\r\n\r\nconst sql = 'insert into some_table (column_1, column_2) values ?';\r\nconst values = [\r\n  [\r\n    [1, 'a'],\r\n    [2, 'b'],\r\n    [3, 'c'],\r\n  ],\r\n]; // yes, it's three square brackets, don't ask\r\ncy.query(sql, values).then((res) => {\r\n  cy.log(res.affectedRows); // outputs 3\r\n});\r\n```\r\n\r\nSupported commands:\r\n\r\n- create database\r\n- create/drop table\r\n- any kind of select/join/insert/delete statetments\r\n\r\n# Environment setup\r\n\r\nAdd the following `env` properties in your `cypress.confing.js` file:\r\n\r\n```javascript\r\nexpose: {\r\n    db: {\r\n      host: 'localhost',\r\n      user: 'user',\r\n      password: 'password',\r\n      database: 'database'\r\n    }\r\n  }\r\n```\r\n\r\n# Plugin configuration - JavaScript\r\n\r\nIn your `cypress.config.js` add the following:\r\n\r\n```javascript\r\nconst mysql = require('cypress-mysql');\r\n\r\nmodule.exports = defineConfig({\r\n  e2e: {\r\n    expose: {\r\n      db: {\r\n        host: 'localhost',\r\n        user: 'cypress',\r\n        password: 'cypress',\r\n        database: 'cypress',\r\n      },\r\n    },\r\n    async setupNodeEvents(on, config) {\r\n      mysql.configurePlugin(on);\r\n    },\r\n  },\r\n});\r\n```\r\n\r\nIn your `cypress/support/e2e.js` add the following:\r\n\r\n```javascript\r\nconst mysql = require('cypress-mysql/dist/commands');\r\nmysql.addCommands();\r\n```\r\n\r\n# Plugin configuration - TypeScript\r\n\r\nIn your `cypress.config.ts` add the following:\r\n\r\n```typescript\r\nimport { configurePlugin } from 'cypress-mysql';\r\n\r\nconst defineConfig({\r\n    e2e: {\r\n        expose: {\r\n            db: {\r\n                host: 'localhost',\r\n                user: 'cypress',\r\n                password: 'cypress',\r\n                database: 'cypress'\r\n            },\r\n        },\r\n        setupNodeEvents(on, config) {\r\n            configurePlugin(on);\r\n        },\r\n    },\r\n)}\r\n```\r\n\r\nIn your `cypress/support/e2e.ts` add the following:\r\n\r\n```typescript\r\nimport { addCommands } from 'cypress-mysql/dist/commands';\r\naddCommands();\r\n```\r\n\r\n# Future development & support\r\n\r\nPlease create feature requests for things you'd like to see.<br>\r\nPlease raise issues for any problems you encounter.\\*\\*\r\n","readmeFilename":"README.md"}