All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.13.0 (2020-08-01)
- routing: add support for ActivatedRoute url property (#326) (d74e534)
- routing: add support for router tree state mocking (#331) (dfd8317), closes #328
5.12.0 (2020-07-12)
5.11.0 (2020-06-24)
5.10.0 (2020-06-23)
5.9.1 (2020-06-21)
5.9.0 (2020-05-27)
5.8.0 (2020-05-24)
5.7.1 (2020-05-14)
5.7.0 (2020-05-14)
- update jquery to 3.5.0 to mitigate xss attack (#300) (26517a4)
- schematics: get rid of schematics-utilities (#297) (f702629)
5.6.1 (2020-04-21)
5.6.0 (2020-04-21)
5.5.0 (2020-04-18)
5.4.0 (2020-04-17)
5.3.1 (2020-03-05)
5.3.0 (2020-03-05)
- lib: use TestBed.get if .inject falsy - back compatibility… (#284) (e39a75a), closes #283 #283 #283 #283
5.2.1 (2020-03-02)
5.2.0 (2020-03-01)
5.1.0 (2020-02-26)
- matchers: 🐛 add toHaveSelectedOptions matcher for jest (#271) (a260377)
- schematics service for jest (#276) (0f970c3)
- mathers: fix passing toHaveStyle if styles applied in attr… (#274) (f1ec6e7)
5.0.0 (2020-02-18)
- 🎸 upgrade to ng v9 (5ec7a90)
- support for overriding mocking component view providers (#266) (23b78da)
- upgrading to angular v9 (#267) (e13c955)
-
Angular 9 is a peer deps now
-
This PR sets the angular peer dependencies to v9
-
feat: adding inject method to spectator
- This method taps into the type safe TestBed.inject function.
- Marked Spectator.get() as deprecated.
-
refactor: updating function signature of inject
-
refactor: updating Token type and using with inject
-
refactor: updating injectionType with actual declaration
4.11.2 (2020-01-09)
- schematics: test should pass (6e97635)
4.11.1 (2020-01-08)
4.11.0 (2020-01-08)
4.10.1 (2020-01-03)
4.10.0 (2019-12-12)
4.9.0 (2019-12-05)
4.8.1 (2019-12-04)
4.8.0 (2019-12-03)
4.7.0 (2019-11-29)
- matchers: add more custom matchers to the API #217 (#235) (64fc816)
- spectator: added expectConcurrent to spectator-http (#231) (#238) (9468a0a)
4.6.0 (2019-11-19)
4.5.2 (2019-11-07)
4.5.1 (2019-11-06)
- 🐛 add jasmine to deps (7b87583)
4.5.0 (2019-10-21)
4.4.2 (2019-10-16)
- jest/lib: template mutation with createSpyObject (#209) (e23af88)
- schematics: respect component path provided with the name (#199) (ed2fc48), closes #195
4.4.1 (2019-10-10)
4.4.0 (2019-10-06)
- 🎸 add tick helper (059be16)
4.3.4 (2019-10-02)
- support for textareas in typeInElement (802270e)
4.3.3 (2019-10-02)
4.3.2 (2019-09-24)
- mock: fix typings error on TS 3.5 (26fc6ba)
4.3.1 (2019-09-24)
- mock: make SpyObject properties writable by default (3d0931f)
4.3.0 (2019-09-20)
4.2.3 (2019-09-17)
4.2.2 (2019-09-10)
- 🐛 refactor entry components for ivy (06d2c11)
4.2.1 (2019-09-09)
4.2.0 (2019-09-05)
4.1.0 (2019-09-04)
- 🎸 mouse (0303844)
4.0.2 (2019-09-03)
4.0.1 (2019-09-01)
4.0.0 (2019-08-26)
- expose event helpers (994bd7e)
- directive: fix missing directive instance (6e58ce1)
- fix query regression and unit testing improvements (75f5512)
- fix typing for queryAll (954f31b)
- host: make host fixture visible again (9d98f25)
- http: backwards support for destructuring SpectatorHttp (d9bd304)
- lib: export global injections (897d1c8)
- lib: remove ng add schematic in favour of npm/yarn install (372f848)
- mock: allow assigning read-only properties (1542c24)
- schematics: update schematics for v4 API changes (4175b30)
- spectator: fix for querying directives (cdd3fd7)
- tests: support entry components (51b5481)
- change NPM scope from @netbasal to @ngneat (#160) (9c19f98)
- http: rename dataService to service (abda34d)
- lib: v4 changes (50a599f)
- lib: v4 changes (aaeb7f9)
- add factory for SpectatorForDirective (#157) (4d075da)
- service: call OnDestroy lifecycle on service after each test (899d79f)
- add migration CLI script (238cff5)
- add routing support (#151) (aacfb25)
- add support for overrides (f45824c)
- deprecate createService in favour of createServiceFactory (3a70424)
- support for Angular 8 and Jasmine 3 (#152) (f84e73e)
- support for mocking component providers (6c9fa9e)
For the full list of breaking changes in 4.0.0, please see MIGRATION.md.
3.12.0 (2019-08-15)
3.11.1 (2019-08-08)
3.11.0 (2019-08-06)
3.10.0 (2019-08-04)
- matchers: element is hidden if it is falsy (#127) (05ba520)
- matchers: pass input to
isHidden
through jQuery (fixes #122) (38b64f0) - enforce usage of jest type definitions (453928c)
- spectator: improve type inference even more (877013b)
- spectator: improve type inference for Spectator (1c3f23a)
- remove circular dependency (d499778)
- update jest due test execution error (3fc7326)
- mock: writable properties for SpyObjects (977059a)
3.9.2 (2019-06-21)
3.9.1 (2019-05-22)
- global-injections: allow override injections (e1eaa5d)
- lib: add define global injections function (5456230)
3.9.0 (2019-05-15)
- lib: update jquery (6097376)
3.8.2 (2019-05-15)
- jQuery version bump (9595b78)
3.8.0 (2019-05-13)
- event-objects: add missing code (9edad7d)
- service: allow passing entrycomponents (361188f)
3.7.1 (2019-05-07)
- mouse-events: should bubble and add button option (cbeea0d), closes #105
- type-in-element: should bubble by default (496a91f), closes #104
3.6.1 (2019-03-31)
- config: map schemas option to initial module config (897c850)
- jest: fix for incorrect typing of SpyObject for Jest (1cc0a36)
- lib: avoid mockProvider to modify its inputs (32bac7d)
- lib: create failing test for mockProvider leaking (eed379a)
- jest: imporove spy types (f23de82)
- lib: add failing test for method mocking (36fec41)
- lib: create test which fails when query doesn't find an element (d3b3833)
- lib: handle not found elemenet by.directive (2d32510)
- lib: mockProvider allows mocking methods using 2nd argument (fd2547c)
- spectator: mark toHaveAttribute second parameter as optional (fc07596)
3.5.0 (2019-03-10)
- jest: expose dom selectors (9c32bbc), closes #62
- jest: fix type collisions between jasmine/jest (e7b6a44)
- lib: revert pr (8c00cde)
- config: add declareComponent option (ccbf8ea)
- internal: use host debug element when debug element is missing (882950b)
- internal: use host debug element when debug element is missing (820c380)
- lib: add ng-add support (064d452)
- schematics: create ng add schematics (6d74f4f), closes #53
- avoid spec has no expectations when using expectOne (8b74d46)
3.1.0 (2018-12-17)
- host: componentProviders should act on the component (ef84b16)
- host: componentProviders should not be overwritten always (793e6e0)
- jest: add missing export (a1a210b)
- jest: fix build (7f058b3)
- jest: fixes after review comments (2b7d2a5)
- service: loosen SpectatorService.get interface typing (6ab678b)
- service: loosen type restrictions on SpectatorService.get (b1adb37)
- service: merge options imports into module imports when creating a service TestBed (70c9c1f)
- types: add types to matchers definitions (9de13d1)
- lib: disable change detection on a test level (1df9d7f)
- mock: allow to pass template with properties for mocks (c2a3548)
- mock: create failing tests for mocks with properties (f2a3fee)
- mock: support for Jest mocking (45f0677)
1.13.1 (2018-07-13)
1.13.0 (2018-07-06)
1.12.1 (2018-07-05)
- query: correct return type for queryAll (a5c86d5)
1.12.0 (2018-06-27)
- query: add dom-testing-library query tools (82a42e2)
1.11.1 (2018-06-26)
- host: don't override component inputs (814e0b0)
1.8.1 (2018-06-26)
- dev: add missing jQuery dependency (11e4234)
- dev: remove node_modules (e42443d)
- host: don't override input changes (054a3c2), closes #31
- mock-component: content projection for default MockComponent (7c3ba52)
1.11.0 (2018-06-20)
- directive: add MockDirective helper function (842f0a7)
1.10.0 (2018-06-16)
- changelog: update (30ed3da)
- matchers: add
toHaveProperty
andtoHaveAttribute
matchers (303ae6d), closes #21
1.9.1 (2018-06-01)
- query: query now can accept a generic to define the return value (acd3b4a)
1.9.0 (2018-05-28)
- directive: add getDirectiveInstance to host (9b2ffc6)
1.8.0 (2018-05-27)
- providers: add component providers option (832c770)
1.7.3 (2018-05-24)
- types: add spyobject type to get method (87b5c5b)
1.7.2 (2018-05-22)
- readme: update (0390bc0)
1.7.1 (2018-05-22)
- host: add change detection component on init (d22e53d)
1.7.0 (2018-05-22)
- mocks: add mock component function (ce20d26)
1.6.1 (2018-05-21)
- spectator: entry component and query selector (8397295)
1.5.5 (2018-05-21)
- internal: revert to angular selector (81f5308)
- upgrade: upgrade to latest versions of angular and rxjs (8fff888)
- upgrade: the library depends on latest version of angular and rxjs
1.5.4 (2018-05-18)
- query: prefer native js over angular api (e0fe656)
1.5.3 (2018-05-15)
- host: remove default object value (cadb8c3)
1.5.2 (2018-05-14)
- detectchanges: run detect changes on the component instead host (77c77a1)
1.6.0 (2018-05-14)
- setinput: run component detect changes instead host (0bb73d4)
1.5.0 (2018-05-13)
- host: add setHostInput method (749dfb8)
1.4.4 (2018-04-30)
1.4.3 (2018-04-23)
- build: downgrade to es5 (0eee88c)
1.4.2 (2018-04-22)
1.4.1 (2018-04-17)
- http: remove const enum (cf90619)
1.4.0 (2018-04-17)
- http: expose get method for getting the service (400c082)
1.3.4 (2018-04-14)
- events: add document and window types (25130cd)
1.3.3 (2018-04-13)
- build: revert files (f281ac2)
1.3.2 (2018-04-13)
1.3.1 (2018-04-13)
- build: dont publish src (4d14b48)
1.3.0 (2018-04-13)
1.2.3 (2018-04-13)
- query: support elementref (3ab3647)
1.2.2 (2018-04-13)
- query: fix internal generic (2b2406c)
1.2.1 (2018-04-13)
- query: query now returns the right generic (2e69a09)
1.2.0 (2018-04-11)
- components: add support to pass mocks providers (0c58d06)
1.1.1 (2018-04-10)
1.1.0 (2018-04-10)
- events: add new helpers method (7665d08)
1.0.1 (2018-04-10)
1.0.0 (2018-04-07)
- query: query and queryall now supports more options (a309f3c)
- query: 1. ByDirective no longer exists - use query/all
0.5.2 (2018-04-05)
- host: remove unused import (e0e7f28)
0.5.1 (2018-04-05)
- entrycomponents: fix undefined bug (fe921c9)
0.5.0 (2018-04-05)
0.4.2 (2018-04-05)
- host: fix generic type (ebf923b)
0.4.1 (2018-04-04)
- spectator: fix queryall return type (8456943)
0.4.0 (2018-04-04)
- spectator: support for getting the debug element (5838954)
0.3.0 (2018-04-04)
0.2.2 (2018-04-04)
0.2.1 (2018-04-04)
0.2.0 (2018-04-03)
- internals.js: additional parameters for event emitting functions (2f562fb)
- query: add the option to query by directive (9d54c42)
0.1.5 (2018-04-02)
- click: add an option to pass native element and debug element (fafe43d)
0.1.4 (2018-04-02)
- host: fix initial module undefined when using host (5c09555)
0.1.3 (2018-04-01)
- host: mark host as optional (834b12f)
0.1.0 (2018-04-01)
- dummy commit (ec4b6bd)