jest-mysql
JSON →Jest preset that simplifies MySQL database setup for integration testing. Version 2.0.2 requires Node >=16 and peer dependencies jest 29.x.x and mysql 2.x.x. Offers schema import, automatic database creation, optional truncation after tests, and custom setup hooks. Provides a global db connection for querying within tests. Differentiates from alternatives by being a full preset rather than a library, streamlining configuration via jest-mysql-config.js.
Resources
packagejest-mysql ↗