{"library":"yhtml5-test","type":"library","category":null,"description":"yhtml5-test is a front-end test framework designed to simplify unit testing in JavaScript projects, primarily by wrapping and pre-configuring Jest. It aims to reduce the boilerplate and configuration overhead typically associated with setting up a modern testing environment, abstracting away direct interactions with tools like Babel, Node, and Jest itself. The framework includes built-in polyfills, sophisticated file transformers for JavaScript, CSS, and other assets, and a pre-configured environment to simulate browser APIs. It supports testing React components through its integration with Enzyme and `react-test-renderer` (specifically v15.6.x and v2.9.x respectively, as shown in the quickstart). Key features include robust coverage reporting, snapshot testing capabilities, and an opinionated structure for test case organization. Currently at version 1.2.2, its release cadence is not explicitly stated but relies on updates to the underlying `@2dfire/2dfire-scripts` package. It differentiates itself by providing a batteries-included setup focused on immediate productivity for detecting bugs, identifying unused code, and ensuring code quality.","language":"javascript","status":"maintenance","version":"1.2.2","tags":["javascript","react","cli","spa"],"last_verified":"Wed May 27","install":[{"cmd":"npm install yhtml5-test","imports":["npm test\nnpm run test:c\nnpm run test:u","// .config.js\nconst path = require('path');\nmodule.exports = config;","import { shallow } from 'enzyme';\nimport MyComponent from './MyComponent';"]},{"cmd":"yarn add yhtml5-test","imports":[]},{"cmd":"pnpm add yhtml5-test","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/yhtml5-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/yhtml5-test/compatibility"}}