{"library":"jest-useragent-mock","type":"library","category":null,"description":"jest-useragent-mock is a lightweight utility designed to facilitate the mocking of `navigator.userAgent` within Jest unit tests. It provides simple functions, `mockUserAgent` and `clear`, to set and reset the browser's user-agent string, making it easier to test browser-specific logic or user-agent dependent features. The current stable version is 0.1.1. Given its specific scope and low version, it operates on an infrequent release cadence, appearing to be in a maintenance state with no recent updates since its initial release. Its key differentiator is its singular focus on `navigator.userAgent` mocking, directly integrating with Jest's setup files for global application across test suites, distinguishing it from broader mocking libraries by offering a specialized, minimalist solution.","language":"javascript","status":"maintenance","version":"0.1.1","tags":["javascript","mock","jest","useragent","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jest-useragent-mock","imports":["import { mockUserAgent } from 'jest-useragent-mock';","import { clear } from 'jest-useragent-mock';"]},{"cmd":"yarn add jest-useragent-mock","imports":[]},{"cmd":"pnpm add jest-useragent-mock","imports":[]}],"homepage":null,"github":"https://github.com/ariesjia/jest-useragent-mock","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jest-useragent-mock","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-useragent-mock/compatibility"}}