{"library":"jest-mysql","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","jest","jest preset","jest mysql","mysql preset","mysql jest","mysql"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install jest-mysql","imports":["global.db","module.exports = { preset: 'jest-mysql' }","module.exports = { postSetup }"]},{"cmd":"yarn add jest-mysql","imports":[]},{"cmd":"pnpm add jest-mysql","imports":[]}],"homepage":"https://github.com/Daniel-Yonkov/jest-mysql#readme","github":"https://github.com/Daniel-Yonkov/jest-mysql","docs":null,"changelog":null,"pypi":null,"npm":"jest-mysql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}