{"library":"mysql-transactional-tests","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","mysql","mysql2","transactional tests","mysql transactional tests","mysql2 transactional tests","mysql transaction per test","mysql2 transaction per test","knex transactional tests"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mysql-transactional-tests","imports":["import { startTransaction } from 'mysql-transactional-tests/mysql'","import { unPatch } from 'mysql-transactional-tests/mysql2'","const { startTransaction } = require('mysql-transactional-tests/mysql')"]},{"cmd":"yarn add mysql-transactional-tests","imports":[]},{"cmd":"pnpm add mysql-transactional-tests","imports":[]}],"homepage":"https://github.com/dm-kamaev/mysql-transactional-tests#readme","github":"https://github.com/dm-kamaev/mysql-transactional-tests","docs":null,"changelog":null,"pypi":null,"npm":"mysql-transactional-tests","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}