Angular ControlValueAccessor Test Suite
JSON →ngx-cva-test-suite is an Angular testing utility designed to streamline and standardize the process of unit testing custom form components that implement `ControlValueAccessor` (CVA). Currently at version 2.0.1, this library provides a comprehensive set of pre-defined test cases, ensuring that custom controls correctly handle essential CVA behaviors such as `onChange` and `onTouched` calls, disabled states, and `reset()` functionality, which are common sources of errors in CVA implementations. It is compatible with both Jest and Jasmine test runners and offers various configuration options to accommodate diverse component structures. Releases for this library typically align with major Angular version updates, with patch releases addressing bug fixes. Its key differentiator lies in its robust, pre-built test suite that reduces boilerplate and potential oversight when developing complex, custom form controls, aiming for extensive unit test coverage.
Traffic · last 30 days ↑100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany · 🇫🇮 Finland