{"library":"bedrock-test","type":"library","category":null,"description":"bedrock-test is a JavaScript testing utility for the Bedrock modular web application framework. It provides a structured approach for setting up and running tests, leveraging Mocha for backend unit tests and Karma (formerly Protractor, updated in search results to Karma) for frontend testing. The package, currently at version 6.1.0, is part of the Digital Bazaar Bedrock ecosystem, indicating its release cadence is likely tied to the development of the main Bedrock framework. Key differentiators include its ability to create self-contained test environments for individual modules, manage configuration overrides (e.g., `config.test.js` overriding `config.js`), and facilitate the inclusion of helper functions and mock data for comprehensive testing scenarios. It aims to simplify complex testing setups within the Bedrock architecture by defining how test files are loaded and executed, supporting a modular and independent testing approach for Bedrock-based projects.","language":"javascript","status":"active","version":"6.1.0","tags":["javascript","bedrock test"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bedrock-test","imports":["import * as bedrockTest from 'bedrock-test';","import * as bedrock from '@bedrock/core';\nbedrock.events.on('bedrock.test.configure', configureTest);","// In test.config.js\nimport path from 'path';\nimport { fileURLToPath } from 'url';\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nconfig.mocha.tests.push(path.join(__dirname, 'mocha'));"]},{"cmd":"yarn add bedrock-test","imports":[]},{"cmd":"pnpm add bedrock-test","imports":[]}],"homepage":null,"github":"https://github.com/digitalbazaar/bedrock-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bedrock-test","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/bedrock-test/compatibility"}}