{"library":"mochapack","type":"library","category":null,"description":"Mochapack is a command-line utility designed to seamlessly integrate Webpack's powerful asset compilation and module resolution directly into the Mocha test runner. Forked from the unmaintained `mocha-webpack`, it provides an optimized testing experience by precompiling test files with Webpack, automatically handling source maps, and avoiding temporary file writes to disk. A key differentiator is its 'watch' mode, which intelligently re-runs only the test files affected by a change, leveraging Webpack's dependency graph for efficient feedback during development. It aims to offer a CLI experience nearly identical to Mocha's, while enabling full Webpack benefits like custom path resolution within tests. The current stable version is 2.1.5, with releases typically occurring on a quarterly basis, focusing on dependency updates, Webpack/Mocha compatibility, and bug fixes.","language":"javascript","status":"active","version":"2.1.5","tags":["javascript","webpack","mocha","typescript"],"install":[{"cmd":"npm install mochapack","imports":["npm install --save-dev mocha webpack mochapack\n// package.json scripts section:\n\"test\": \"mochapack \\\"test/**/*.spec.ts\\\"\"","mochapack --webpack-config ./webpack.config.test.js \"test/**/*.js\"","mochapack --watch \"test/**/*.spec.ts\""]},{"cmd":"yarn add mochapack","imports":[]},{"cmd":"pnpm add mochapack","imports":[]}],"homepage":"https://mochapack.js.org","github":"https://github.com/sysgears/mochapack","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mochapack","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mochapack/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}