ng-mocks

Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup

MIT License

Downloads
1.6M
Stars
991
Committers
29

Bot releases are visible (Hide)

ng-mocks - v12.3.1

Published by satanTime over 3 years ago

12.3.1 (2021-07-04)

Bug Fixes

  • core: right storage of internal stacks (ba0b64b)
ng-mocks - v12.3.0

Published by satanTime over 3 years ago

12.3.0 (2021-07-03)

Bug Fixes

  • core: using commonjs only because of optional packages #761 (adbad49)
  • jest: better detection and error reporting of jest.mock #760 (0903a12)
  • MockBuilder: params support tokens and modules with providers #762 (d58693e)

Features

  • ngMocks: allows to suppress console logs #578 (ee1c6bb)
ng-mocks - v12.2.0

Published by satanTime over 3 years ago

12.2.0 (2021-06-30)

Bug Fixes

  • core: allowing spies on ComponentFactoryResolver.resolveComponentFactory #736 (fda714e)
  • core: mock of mock will return itself (4358b99)

Features

  • core: mock for root and platform definitions #735 (04128b6)
  • core: throw on console can accept custom method names (fecc878)
ng-mocks - v12.1.2

Published by satanTime over 3 years ago

12.1.2 (2021-06-20)

Performance Improvements

  • mock-render: caching generated component #731 (66e23c5)
ng-mocks - v12.1.1

Published by satanTime over 3 years ago

12.1.1 (2021-06-19)

Bug Fixes

  • core: building cjs and mjs #702 (f11c086)
  • core: supports mocks for viewProviders #726 (68f9946)
  • faster: support for pure TestBed #721 (d4e0c8a)
  • mock-builder: provides globally exported providers from directives and components #623 (58ee0d8)
ng-mocks - v12.1.0

Published by satanTime over 3 years ago

12.1.0 (2021-06-05)

Bug Fixes

  • core: excluding StoreDevtoolsModule by default #589 (c376e93)
  • core: supporting jest-circus as a test runner #610 (aaa0380)
  • jest: a fix in advance to listen to jest hooks #610 (1290c8a)
  • mock-builder: keeps and mocks modules with providers properly #625 (4d4ff49)
  • mock-render: factory can be used in describes #629 (f440760)
  • mock-render: skipping proxy for bindings from factory #621 (f4dae60)

Features

  • core: replacing animations with noop by default #641 (ca65de3)

Reverts

  • Revert "chore(deps): update dependency jest to v27" (1f4bd9a)
ng-mocks - v12.0.2

Published by satanTime over 3 years ago

12.0.2 (2021-05-25)

Bug Fixes

  • mock-render: default to onTestBedFlushNeed = warn #593 (a9e535c)
  • mock-render: dynamic params and cdr for factory #586 (73f54c5)
ng-mocks - v12.0.1

Published by satanTime over 3 years ago

12.0.1 (2021-05-21)

Bug Fixes

  • core: a config parameter to suppress MockRender errors #572 (bcfe23a)
  • core: broken query selectors are properly normalized #567 (9c1ea70)
  • default-mock: supports an array with declarations #568 (5d3b43e)
  • default-mock: supports generic type in array signature #583 (c925818)
  • faster: supports directives and components without selectors #576 (599c7d5)
  • mock-render: allowing to disable flush TestBed warning (6131ecb)
  • mock-render: providing a MockRenderFactory in order to reuse the same middleware component (79fa336)

Performance Improvements

  • core: switching internal stack to an array instead of a set (24c4bfd)
ng-mocks - v12.0.0

Published by satanTime over 3 years ago

12.0.0 (2021-05-13)

Features

  • official support of Angular 12 (d63c34f)

BREAKING CHANGES

  • auto spy should be installed via ngMocks.autoSpy
ng-mocks - v11.11.2

Published by satanTime over 3 years ago

11.11.2 (2021-05-13)

Bug Fixes

  • core: properly handling Sanitizer and DomSanitizer #538 (fb51bb4)
  • mock-render: detectChanges flag has to be provided to supress render (8195eeb)
ng-mocks - v11.11.1

Published by satanTime over 3 years ago

11.11.1 (2021-05-09)

Bug Fixes

  • mock-render: binds all inputs on no params #522 (dd5abba)
ng-mocks - v11.11.0

Published by satanTime over 3 years ago

11.11.0 (2021-05-09)

Bug Fixes

  • mock-builder: overrides mock modules for platform #435 (bf469bc)
  • mock-builder: respecting forward-ref and modules with providers #312 (4a099b8)
  • overrides as functions are properly cloned #455 (9310d34)
  • skipping wrong query selectors #445 (6750939)
  • supporting new structure of lView (8d3cadf)
  • #333: register mock components with entryComponents (3a53431), closes #333

Features

  • faster: supports MockRender in beforeAll #488 (df4418c)
  • mock-builder: accepts arrays in params #386 (c8d8e40)
  • mock-render: generates tpl only for provided inputs and outputs #434 (23d45a2)
  • mock-render: throws on wrong usage #488 (b4a62bc)
  • almost all ngMocks helpers support css selectors #317 (b348842)
ng-mocks - v11.10.1

Published by satanTime over 3 years ago

11.10.1 (2021-04-12)

Bug Fixes

  • #354: better error instead of is not in JIT mode (45f05fb), closes #354
  • #377: respect of providedIn in Injectable (91aba4b), closes #377
ng-mocks - v11.10.0

Published by satanTime over 3 years ago

11.10.0 (2021-04-04)

Bug Fixes

  • #316: better support for typeIn and ngModel (7d03c2d), closes #316
  • #320: full implementation of ngMocks.touch and ngMocks.change (fd81409), closes #320
  • #324: smarter touches and changes (fa418d0), closes #324

Features

  • #314: ngMocks.formatText (fa3cea7), closes #314
  • #315: ngMocks.trigger and ngMocks.click (2ae6e5a), closes #315
ng-mocks - v11.9.1

Published by satanTime over 3 years ago

11.9.1 (2021-03-14)

Bug Fixes

  • supporting schematics for updates (8e30404)
ng-mocks - v11.9.0

Published by satanTime over 3 years ago

11.9.0 (2021-02-27)

Bug Fixes

  • #305: better injection of NgControl (f85f497), closes #305

Features

ng-mocks - v11.8.0

Published by satanTime over 3 years ago

11.8.0 (2021-02-25)

Features

ng-mocks - v11.7.0

Published by satanTime over 3 years ago

11.7.0 (2021-02-19)

Bug Fixes

  • cannot set property 'form' of undefined (a7b60e9), closes #302
  • correct replacement of useExisting providers (6908e5f)

Features

ng-mocks - v11.6.0

Published by satanTime over 3 years ago

11.6.0 (2021-02-14)

Bug Fixes

  • all find functions can handle undefined debug element (397ecf8)
  • better types (bd7f72b)
  • correct stop of search in ivy tree (952986e), closes #298
  • issue of useExisting and mat components (0714da8)

Features

  • find TemplateRef / ng-template (093eea7), closes #290
  • support of A12 (4627fe2), closes #293
  • #288: correct render for ContentChild properties (5fec515), closes #288
ng-mocks - v11.5.0

Published by satanTime over 3 years ago

11.5.0 (2021-01-22)

Bug Fixes

Features

  • mock-instance: simpler interface (0306643)