14.13.1 (2024-08-25)
14.13.0 (2024-06-01)
- a18 support (e2c1dff)
14.12.2 (2024-04-13)
14.12.1 (2023-11-19)
- undefined issue with some modules (8045447)
14.12.0 (2023-11-18)
- ci: running npm after nvm #6505 (5a115a7)
- docs: Fixed typo in MockBuilder docs (3fa9b54)
- MockBuilder: detecting parent modules to build correct TestBed #6928 (2d0012c)
- MockBuilder: respects global rules as they would be chain calls #6402 (23d9ba6)
- ng-mocks: a17 support (ea19983)
- ngMocks: respects custom errors on lookups #7041 (6c78f54)
14.11.0 (2023-06-11)
14.10.1 (2023-05-13)
14.10.0 (2023-04-23)
- core: better eval code to extend es6 classes #5465 (2dd66cd)
- MockBuilder: touches kept modules in standalone components #5520 (1589172)
14.9.0 (2023-04-15)
14.8.0 (2023-04-02)
14.7.3 (2023-03-26)
- MockBuilder: configuration first, process later #5239 (992ef6a)
- MockBuilder: respects pipe-transform in early mocks #5239 (979d42b)
14.7.2 (2023-03-25)
14.7.1 (2023-03-10)
14.7.0 (2023-03-05)
- deps: update nrwl monorepo to v15.8.5 (f73f25a)
14.6.0 (2023-01-21)
14.5.3 (2023-01-15)
14.5.2 (2023-01-06)
14.5.1 (2022-12-24)
- core: correctly defines TestBed with multiple declarations with the same selector #4564 (1e01f82)
- core: respecting transform in mock pipes #4564 (df51240)
14.5.0 (2022-12-11)
- core: hidden usage of MockBuilder in TestBed if kept and mock modules are used together #4344 (d77b6f2)
- MockInstance: ignores undefined properties #4367 (70d9781)
14.4.0 (2022-11-27)
- a15: adding NG_MOCKS_ROOT_PROVIDERS for RouteReuseStrategy (737247d)
- core: correct caching of touched declarations #4344 (233f014)
14.3.4 (2022-11-22)
- core: respecting schemas in mock modules #4228 (b13bf34)
- core: support for EnvironmentProviders (bcb8112)
14.3.3 (2022-11-12)
14.3.2 (2022-10-30)
14.3.1 (2022-10-23)
14.3.0 (2022-10-13)
14.2.4 (2022-10-09)
- core: exporting internal types #3709 (8b9cb23)
- core: providers with useExisting will be kept if their value is a kept declaration #3778 (4ef2885)
14.2.3 (2022-09-24)
- MockBuilder: better detection of provided dependencies #3635 (4e9aeab)
- MockRender: does not throw on standalone declarations #3636 (b2de841)
14.2.2 (2022-09-18)
14.2.1 (2022-09-09)
- core: supports TS 4.8.3 #3514 (5b49b92)
- MockBuilder: type of TestBed #3466 (6d8cef7)
- ngMocks.faster: support of angular 14.2.0 #3466 (5f893bb)
14.2.0 (2022-08-21)
14.1.3 (2022-08-09)
14.1.2 (2022-08-07)
14.1.1 (2022-07-31)
14.1.0 (2022-07-15)
- core: detecting and mocking standalone directives correctly #3100 (560b334)
- core: preventing recursion of self pointers #3095 (793a3c5)
14.0.2 (2022-07-11)
- Moved to help-me-mom organization on GitHub
14.0.1 (2022-06-19)
- core: provide mjs in package.json #2846 (1d007dd)
- MockBuilder: add undecorated classes to providers #2845 (29b6591)
14.0.0 (2022-06-18)
- core: Support of standalone declarations #2687 (797cec3)
- MockBuilder: default flags as dependency or export #2647 (f37a663)
- MockBuilder: MockBuilder with 2 params marks all chain calls as dependency
- MockBuilder: MockBuilder with 0-1 params marks all chain calls as export
13.5.2 (2022-05-14)
13.5.1 (2022-05-07)
13.5.0 (2022-05-01)
- ngMocks.findInstance: finds pipes in attributes #2314 (1b8868f)
- ngMocks.findInstance: works without fixture #2311 (7752914)
13.4.2 (2022-04-11)
- exporting package.json (4441f59)
13.4.2-alpha.1 (2022-04-11)
- exporting package.json (4441f59)
13.4.1 (2022-04-10)
13.4.0 (2022-04-03)
- a14: injecting mock components in vcr.createComponent #333 (f3e5fd9)
- core: BrowserAnimationsModule is optional dependency now #1377 (6f4e8da)
- core: removing isNgModuleDefWithProviders from exports #2173 (7501dc9)
13.3.0 (2022-03-27)
- core: better error messages #1168 (cad1efb)
- ngMocks.stubMember: forwarding stub values to point.componentInstance #1165 (3450e1d)
- ngMocks.findInstance: looks for instances in all matched DebugElements #2105 (bb39517)
- ngMocks.findInstance: supports tokens #2097 (9387209)
13.2.0 (2022-03-20)
13.1.1 (2022-03-12)
13.1.0 (2022-03-06)
13.0.4 (2022-02-27)
13.0.3 (2022-02-20)
13.0.2 (2022-02-06)
- ie: running IE on A5 and old nodejs (087d58d)
13.0.1 (2022-02-06)
13.0.0 (2022-01-23)
- a13: creating known props and methods (5386f77)
- a13: parsing a9 declarations (b12e00a)
- core: correct resets on errors (e3b1809)
- core: ignoring host bindings in mocks #1427 (411842c)
- core: parsing only own declarations #1587 (978bdbc)
- a13: Angular 13 only support
13.0.0-alpha.6 (2022-01-18)
13.0.0-alpha.5 (2022-01-17)
13.0.0-alpha.4 (2022-01-16)
- core: correct resets on errors (e3b1809)
13.0.0-alpha.3 (2022-01-15)
13.0.0-alpha.2 (2022-01-09)
- a13: recursive declarations (396573f)
13.0.0-alpha.1 (2022-01-08)
- a13: support (88c9752)
- a13: Angular 13 only support
12.5.1 (2021-12-20)
12.5.0 (2021-09-13)
12.4.0 (2021-07-25)
- core: internal stack integration with mocha runner #838 (14a97d0)
- MockInstance: console.warn on forgotten resets #857 (3e35252)
- MockInstance: manual control of mock scopes #857 (fc8a2ed)
12.3.1 (2021-07-04)
- core: right storage of internal stacks (ba0b64b)
12.3.0 (2021-07-03)
- 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)
12.2.0 (2021-06-30)
- core: allowing spies on ComponentFactoryResolver.resolveComponentFactory #736 (fda714e)
- core: mock of mock will return itself (4358b99)
- core: mock for root and platform definitions #735 (04128b6)
- core: throw on console can accept custom method names (fecc878)
12.1.2 (2021-06-20)
12.1.1 (2021-06-19)
- 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)
12.1.0 (2021-06-05)
- 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)
- Revert "chore(deps): update dependency jest to v27" (1f4bd9a)
12.0.2 (2021-05-25)
- mock-render: default to onTestBedFlushNeed = warn #593 (a9e535c)
- mock-render: dynamic params and cdr for factory #586 (73f54c5)
12.0.1 (2021-05-21)
- 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)
- core: switching internal stack to an array instead of a set (24c4bfd)
12.0.0 (2021-05-13)
- official support of Angular 12 (d63c34f)
- auto spy should be installed via ngMocks.autoSpy
11.11.2 (2021-05-13)
- core: properly handling Sanitizer and DomSanitizer #538 (fb51bb4)
- mock-render: detectChanges flag has to be provided to supress render (8195eeb)
11.11.1 (2021-05-09)
11.11.0 (2021-05-09)
- 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
- 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)
11.10.1 (2021-04-12)
- #354: better error instead of is not in JIT mode (45f05fb), closes #354
- #377: respect of providedIn in Injectable (91aba4b), closes #377
11.10.0 (2021-04-04)
- #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
- #314: ngMocks.formatText (fa3cea7), closes #314
- #315: ngMocks.trigger and ngMocks.click (2ae6e5a), closes #315
11.9.1 (2021-03-14)
- supporting schematics for updates (8e30404)
11.9.0 (2021-02-27)
- simpler tools for form controls ngMocks.change and ngMocks.touch (753b975)
11.8.0 (2021-02-25)
- find ng-container via ngMocks.reveal and revealAll (71390b2), closes #289
- ngMocks.render and .hide support debugNodes (55a1b4c)
- respect of virtual dom with ngMocks.crawl (030b29f), closes #289
11.7.0 (2021-02-19)
- cannot set property 'form' of undefined (a7b60e9), closes #302
- correct replacement of useExisting providers (6908e5f)
11.6.0 (2021-02-14)
- 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)
- find TemplateRef / ng-template (093eea7), closes #290
- support of A12 (4627fe2), closes #293
- #288: correct render for ContentChild properties (5fec515), closes #288
11.5.0 (2021-01-22)
- fixing doc urls (5fc0ae3)
- mock-instance: simpler interface (0306643)
11.4.0 (2021-01-17)
- descriptor.configurable = true (68a8751)
- guts: respect ngMocks.default (59bb586)
- mock-instance: a separate config scope (a0c930c)
- mock-module: excludes modules with providers correctly (b5cb39c), closes #271
- mock-render: static selector for declarations w/o selector (8f39d1f)
- @angular/forms is optional (bfaf495)
- avoiding cache in providers' declaration (da98414)
- grouping similarities (e1bc77b)
- ng-mocks: ngMocks.stubMember returns passed value (27f5404)
- ng-mocks: renaming ngMocks.default to ngMocks.global (d9f46d3)
- ng-mocks: ngMocks.stubMember (efcd175)
- ng-mocks: ngMocks.throwOnConsole (7b0f2f8)
- ng-mocks: ngMocks.globalExclude (bdd2821)
- ng-mocks: ngMocks.globalKeep (e89b876)
- ng-mocks: ngMocks.globalReplace (330868f)
- ng-mocks: ngMocks.globalWipe (cb71bdb)
11.3.1 (2021-01-02)
11.3.0 (2021-01-01)
- better umd support (b9b068c)
11.2.8 (2020-12-27)
11.2.7 (2020-12-25)
11.2.6 (2020-12-21)
- auto-spy: in legacy parts too (114ae22)
11.2.5 (2020-12-20)
- auto-spy: as a function call instead of import (3b7d8f7)
11.2.4 (2020-12-13)
- now MockRender's proxy component respects outside params changes (9297cd1)
11.2.3 (2020-12-10)
- #246: auto spy covers control value accessor too (5c5b003), closes #246
- #248: handling null and undefined in declarations (13b9e4e), closes #248
- correct overriding order for pipes (750153d)
11.2.2 (2020-12-05)
- auto-spy covers pipes with default transform (980b4d7)
11.2.0 (2020-12-04)
- global configuration for default mocks (29715f8), closes #226
- impure pipes support +
.get
,.findInstance
can find them in fixtures (efa6337), closes #240 - now
.mock
extends by default, useprecise
flag to get old behavior (bf576fd)
11.1.4 (2020-11-29)
- a contemporary example (d0e5efc)
11.1.3 (2020-11-26)
- clear return statements in the docs (44b12e4)
11.1.2 (2020-11-25)
- issue with mock multi token providers (774f171)
- cc cognitive complexity (8ac1fac)
- cc cognitive complexity (7f677f4)
- cc cognitive complexity (3d0e118)
- cc cognitive complexity (11859ad)
- cc cognitive complexity (74783a9)
- cc complex logical expression (b7c1b76)
- cc duplicates (4e81ff9)
- cc duplicates (73f607a)
- cc duplicates (6bebb6b)
- cc duplicates (f258991)
- cc duplicates (8553dcb)
11.1.1 (2020-11-21)
- latest typescript (e976ed9)
11.1.0 (2020-11-20)
- overrides for MockService (6492a3e)
11.0.0 (2020-11-15)
- angular 11 support (eef7b94)
- respects internals vs externals, to access them use guts or MockBuilder
- removed NG_GUARDS, use NG_MOCKS_GUARDS
- removed NG_INTERCEPTORS, use NG_MOCKS_INTERCEPTORS
- removed custom meta in MockComponent
- removed MockHelper, use ngMocks
- A11
10.5.4 (2020-11-14)
- better handling of double decorations (60bbebc)
- flex behavior for a mock pipe (9769061)
- searching for things in default fixture (17b5208)
10.5.3 (2020-11-07)
- an example how to handle "TypeError: Cannot read property 'subscribe' of undefined" (6501a87), closes #226
- info how to solve "type is part of the declarations of 2 modules" (f5ee1bc)
- mock-render proxy (eaeabba)
- relaxed signature of MockInstance (dccaa2d)
10.5.2 (2020-11-04)
- keeping root providers for kept modules (dc078af), closes #222
- providing a root service as it is for kept declarations (e5486e6), closes #222
- respecting mock keep switch in nested modules (2f185fb)
- support of ngOnChanges from OnChanges interface (820dc94)
10.5.1 (2020-11-01)
10.5.0 (2020-10-30)
- mocking token more intelligently (0f7cc0c)
- supporting null as keepDeclaration of MockBuilder (5f44445)
- supporting pipes in providers (6e252e8), closes #218
- detecting global providers and mocking them (a36a9df)
- exclude feature for ngMocks.guts (1886fd1)
- token to exclude all guards (7068784)
- token to exclude all interceptors (660f4c4)
10.4.0 (2020-10-24)
- exportAll flag for modules (5f8835c)
- ngMocks.guts for easy start (d19f958)
- supporting fixture in ngMocks.find (26da8a4)
10.3.0 (2020-10-18)
- ngMocks.faster execution of test suites (a077d15)
10.2.1 (2020-10-10)
- builds with proper mappings (72ed700)
- mocking private service in component (ab43a43), closes #198
- more intelligent overrides (b17ff7f)
- more restricted stub signature (fc179db)
- performance degration caused by .exclude feature (3bf29ad)
- support of modules with providers in MockBuilder (e0250e0), closes #197
10.2.0 (2020-10-03)
- angular 11 support (af50a72)
- exclude feature in MockBuilder (d839f27), closes #175
- mocked providers for kept declarations (062d147), closes #172
- cache break of MockComponent (4b0ea25), closes #96
- generic type constraint for ngMocks.stub tedious to write (cccd96d), closes #166
10.1.3 (2020-09-13)
- cannot combine @Input decorators with query decorators (7cda85d), closes #181
- respecting initialization of providers between tests (2c7b47d), closes #186
10.1.2 (2020-08-09)
- mocking getter and setters of services (5a0ac7c), closes #177
- mocking imports after declarations (ab3aa6f), closes #178
10.1.1 (2020-07-21)
10.1.0 (2020-07-19)
10.0.2 (2020-07-12)
10.0.1 (2020-07-12)
- building es5 only that supports es2015 (d11ed5a), closes #158
- respect mocks in tokens with useValue (ccccfc6), closes #151
- smart injection of NG_VALUE_ACCESSOR (ad37bf0), closes #157
10.0.0 (2020-07-05)
- A10
9.6.4 (2020-07-02)
9.6.3 (2020-06-23)
9.6.2 (2020-06-21)
9.6.1 (2020-06-14)
- better default type of MockedComponentFixture (cca6994)
9.6.0 (2020-06-14)
- e2e tests for all angular versions (7bc10a7)
- mock-builder + lots of helpers (6965ec0), closes #44
- mock-render tries to mirror passed component (cbb37ba), closes #137
9.5.0 (2020-05-31)
- ngMocks instead of MockHelper (1db914c), closes #131
- throw a human readable error during resolve (284e848), closes #133
- ease of getting inputs and outputs (af9a846), closes #129
- mock-service is typed and supports overrides (805e37b), closes #122
9.4.0 (2020-05-17)
- better docs with current features (c76209f)
9.3.0 (2020-05-10)
- correct mocking of xxxChild(ren) decorators (de7b8c3), closes #109
- improved helpers and documentation (9ef24a0)
- more friendly return type of mock-render (f4a3b79)
- remove usage of uknown (26dfdb8)
- MockHelper with find, findAll and OrFail (ecc4ac7)
- providers for MockRender (cb656b7), closes #102
- support injection a library-related service mocker (e6be694), closes #87 #103
- type-safe MockRender (3bfe7bf)
- respect of all parents (b119547)
- Base class for directives and components (f47853e)
- MockService (62a87ea)
- mock-render: option to detectChanges or not (236b9e0)
- es2015 class declaration method mocking (1286b10)
- angular 8 (29a5203)
- 51: Add mocked entry components to mocked modules (a321b14)
- 49: stop caching mocked pipes (058d66e)
- trim innerText that was getting a new line from a div (f883ad0)
- package-lock out of sync (6fe7d36)
- MockDirective: added the ability to use ViewChild/ViewChildren etc with MockDirective (8853e87)
- MockPlural: removing generic type from MockComponents, Directives, and Pipes (919a06c)
- MockModule: Never mock CommonModule (119dd80)
- add a MockedComponent type (fe547af)
- support structural directives (050e70c)
- package json peer dep version range (8ad3834)
- support angular 6 and test 5 & 6 in travis (5bc9331)
- MockOf - Include mocked class names in mock class names (8b149f5)
- Use Angular annotation resolvers (4050d10)
- Add a null check for decorator args (1058044)
- Support Angular propDecorators inputs and outputs (add374d)
- Fix bad return value from mock-directive (4659a32)
- multiple decorators on an input (13874b9)
- Outdated package-lock (7623e98)
- add functions to mass mock (fee5a03)
- Cleanup exports and export MockDeclaration from MockModule (9fe2bb1)
- mock directives now have event emitter bound outputs (bac1ca5)
- package json typings location (5f6fde0)
- add reflect-metadata back to devDeps (385c9c4)
- Add support for directives with a different kind of meta (0bd38cc)
- add testbed test that exposed now fixed issue (610cbdc)
- forgot how to use js reduce (de518d4)
- instantiate event emitters in component constructor (fb4b97d)
- module exports is now all declarations (fbb0e73)
- output binding (59f476d)
- works with component w/o inputs or outputs (b3d38e7)
- add exportAs and alias support (14a1474)
- add support for exportAs and input aliases (9b42a21)
- Adding angular 2 compatibility and moving to peerDependency (#3) (4bd93db)
- component mock implements control value accessor to support ngModel binding (67ea7c4)
- initial implementation (893f83b)
- memoize function by arg (031e3a6)
- memoize function by arg (cac00b3)
- mock module providers (49b2272)
- Upgrade to angular 5 and pull in testbed for tests (7df64a8)