Automatically generates mocks for Angular components, directives, pipes, modules, and services in Jest tests, eliminating manual stubbing.
ng-automocks-jest is a Jest preset that simplifies Angular unit testing by automatically generating stubs for Angular entities when modules are mocked. It addresses common pain points like injection errors and boilerplate stub creation, allowing developers to focus on writing test assertions rather than setup code.
jest.mock(), eliminating manual stub creation.jest.mock() call, stubbing all their components, directives, and pipes..mockReturnValue() or .mockImplementation() as needed.The project believes Angular testing should be straightforward and boilerplate-free, leveraging Jest's mocking capabilities to automatically handle Angular-specific complexities, so developers can write focused unit tests efficiently.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.