{"library":"jest-chrome","type":"library","category":null,"description":"jest-chrome provides a comprehensive mock of the Chrome Extension API, designed specifically for testing Chrome extensions with Jest. It aims for a complete and accurate representation of the Chrome API, with built-in TypeScript support derived directly from the `@types/chrome` package, ensuring type safety and intellisense. The package is actively maintained, with the current stable version being 0.8.0. Releases occur periodically to address Jest compatibility, improve API coverage, and fix build-related issues, though there isn't a strict time-based cadence. Its primary differentiator is the completeness of the mock and its strong adherence to the official Chrome API types, enabling robust testing of extension logic without needing a real browser environment. This allows for faster, more reliable unit and integration tests for Chrome extensions.","language":"javascript","status":"active","version":"0.8.0","tags":["javascript","api","chrome","chromium","extension","jest","mock","test","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jest-chrome","imports":["import { chrome } from 'jest-chrome'","Object.assign(global, require('jest-chrome'))","import type { Browser } from 'jest-chrome'"]},{"cmd":"yarn add jest-chrome","imports":[]},{"cmd":"pnpm add jest-chrome","imports":[]}],"homepage":null,"github":"https://github.com/extend-chrome/jest-chrome","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jest-chrome","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/jest-chrome/compatibility"}}