A custom Jest environment that deploys a local MySQL 5.7 server on OSX x64, starting once before all tests and stopping after. Version 1.2.17 is the latest. Key differentiator: no external Docker or service dependencies—spins up MySQL natively. OSX-only, requires peer dependencies for platform-specific binaries. Ideal for integration testing against a real MySQL instance without manual setup.
npm install jest-environment-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Jest to use the MySQL environment by setting globalSetup and globalTeardown paths.
Use Docker or a different Jest environment for other OS.
Install mysql-server-5.7-osx-x64 (not available on npm) or use the correct peer packages.
Use 'jest-environment-mysql/lib/globalSetup' and 'jest-environment-mysql/lib/globalTeardown' in Jest config.
Run 'npm install --save-dev mysql-server-5.7-osx-x64' (if available) or switch to supported OS.