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 hidden (Show)

ng-mocks - v11.4.0

Published by satanTime almost 4 years ago

11.4.0 (2021-01-17)

Bug Fixes

  • 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)

Features

  • 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)
ng-mocks - v11.3.1

Published by satanTime almost 4 years ago

11.3.1 (2021-01-02)

Bug Fixes

  • declarations w/o selectors are reachable with ngMocks helpers (ac26d81), closes #266
ng-mocks - v11.3.0

Published by satanTime almost 4 years ago

11.3.0 (2021-01-01)

Bug Fixes

Features

  • mock-render: renders everything (f33a132), closes #266
ng-mocks - v11.2.8

Published by satanTime almost 4 years ago

11.2.8 (2020-12-27)

Bug Fixes

  • removal dependency on decorators (92064d4)
  • removal dependency on reflect-metadata (57cedfb)
ng-mocks - v11.2.7

Published by satanTime almost 4 years ago

11.2.7 (2020-12-25)

Bug Fixes

  • mock-instance: graceful reset after specs (2e395df)
  • mock-instance: supports tokens (92abb82)
ng-mocks - v11.2.6

Published by satanTime almost 4 years ago

11.2.6 (2020-12-21)

Bug Fixes

  • auto-spy: in legacy parts too (114ae22)
ng-mocks - v11.2.5

Published by satanTime almost 4 years ago

11.2.5 (2020-12-20)

Bug Fixes

  • auto-spy: as a function call instead of import (3b7d8f7)
ng-mocks - v11.2.4

Published by satanTime almost 4 years ago

11.2.4 (2020-12-13)

Bug Fixes

  • now MockRender's proxy component respects outside params changes (9297cd1)
ng-mocks - v11.2.3

Published by satanTime almost 4 years ago

11.2.3 (2020-12-10)

Bug Fixes

  • #246: auto spy covers control value accessor too (5c5b003), closes #246 #246
  • #248: handling null and undefined in declarations (13b9e4e), closes #248 #248
  • correct overriding order for pipes (750153d)
ng-mocks - v11.2.2

Published by satanTime almost 4 years ago

11.2.2 (2020-12-05)

Bug Fixes

  • auto-spy covers pipes with default transform (980b4d7)
ng-mocks - v11.2.1

Published by satanTime almost 4 years ago

a failed release, please ignore it.

ng-mocks - v11.2.0

Published by satanTime almost 4 years ago

11.2.0 (2020-12-04)

Bug Fixes

  • ngMocks.guts reuses mock pipes (13dd2c9), closes #241

Features

  • 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, use precise flag to get old behavior (bf576fd)
ng-mocks - v11.1.4

Published by satanTime almost 4 years ago

11.1.4 (2020-11-29)

Bug Fixes

ng-mocks - v11.1.3

Published by satanTime almost 4 years ago

11.1.3 (2020-11-26)

Bug Fixes

  • clear return statements in the docs (44b12e4)
ng-mocks - v11.1.2

Published by satanTime almost 4 years ago

11.1.2 (2020-11-25)

Bug Fixes

  • issue with mock multi token providers (774f171)

Performance Improvements

ng-mocks - v11.1.1

Published by satanTime almost 4 years ago

11.1.1 (2020-11-21)

Bug Fixes

ng-mocks - v11.1.0

Published by satanTime almost 4 years ago

11.1.0 (2020-11-20)

Features

  • overrides for MockService (6492a3e)
ng-mocks - v11.0.0

Published by satanTime almost 4 years ago

11.0.0 (2020-11-15)

Bug Fixes

  • removing deprecations (2625352)
  • respecting internals vs externals (d4abf41), closes #44

Features

BREAKING CHANGES

  • 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
ng-mocks - v10.5.4

Published by satanTime almost 4 years ago

10.5.4 (2020-11-14)

Bug Fixes

  • better handling of double decorations (60bbebc)
  • flex behavior for a mock pipe (9769061)
  • searching for things in default fixture (17b5208)
ng-mocks - v10.5.3

Published by satanTime almost 4 years ago

10.5.3 (2020-11-07)

Bug Fixes

  • 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)