mysql-transactional-tests

JSON →
library 1.0.3 ·javascript
verified Jun 5, 2026

A library (v1.0.3) that patches mysql/mysql2 drivers to wrap each test in a database transaction, automatically rolling back after each test. Inspired by Rails, Laravel, and Spring testing patterns. Supports Knex, Kysely, Sequelize, TypeORM, MikroORM and any ORM/client using mysql or mysql2 drivers. Enables fast, isolated integration tests with a real database without manual cleanup. No recent updates. Import before your database client. ESM and CJS compatible.