This package updates the cypress-postgres module to be compatible with Cypress 10.x.x+ after the migration from 9.x.x. It allows Cypress tests to query a PostgreSQL database directly by registering a custom 'dbQuery' task. Version 1.0.0 is the current stable release, with no active release cadence. Key differentiators: simple setup with connection details in cypress.json, supports single or multiple database connections, and works with Cypress 10. No ESM support.
npm install cypress-postgres-10v-compatibilityNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the package, registers a dbQuery task in Cypress plugins, configures connection in cypress.json, and uses cy.task to run a SQL query.
Run 'npm i -D cypress-postgres' alongside this package.
For Cypress 10+, use this package; for earlier versions, use original 'cypress-postgres'.
Always pass an object: cy.task('dbQuery', { query: '...', connection: {...} }).Set 'db' object in cypress.json, not 'database' or 'postgres'.
Install both: npm i -D cypress-postgres cypress-postgres-10v-compatibility
Use module.exports = on => { ... }; not module.exports = (on, config) => { ... }; if not needed.Ensure plugins file exports the task as shown: on('task', { dbQuery: ... })