All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
12.0.1 (2024-05-27)
- missing ending parenthesis in error message (e9f07a0)
12.0.0 (2024-05-26)
ngx-speculoos
is now based on Angular 18.x. If you want to use it with an older version of Angular, then stick to a previous version of `ngx-speculoosTestSelect
'sselectIndex
,selectValue
andselectLabel
methods now throw if an invalid index, value or label is passed, instead of ignoring it.- The deprecated
fakeRoute
andfakeSnapshot
functions have been dropped. UsestubRoute
, or theRoutingTester
instead.
- drop the deprecated fakeRoute and fakeSnapshot functions (6a5225a)
- throw when selecting invalid index, value or label (093cb5a)
- upgrade to Angular and CLI 18 (99af81c)
11.1.0 (2024-02-16)
- introduce routing tester to test with the RouterTestingHarness (4bebe7c)
11.0.0 (2023-11-15)
ngx-speculoos
is now based on Angular 17.x. If you want to use it with an older version of Angular, then stick to a previous version ofngx-speculoos
.
- upgrade to Angular and CLI 17 (a838a69)
10.0.0 (2023-05-05)
ngx-speculoos
is now based on Angular 16.x. If you want to use it with an older version of Angular, then stick to a previous version ofngx-speculoos
.
- upgrade to Angular 16 (fdd1c4d)
9.0.0 (2022-11-18)
ngx-speculoos
is now based on Angular 15.x. If you want to use it with an older version of Angular, then stick to a previous version ofngx-speculoos
.
- route: Allows setting the title of a route and of its snapshot (06d70d8)
- upgrade to Angular 15 (8662e7d)
8.0.1 (2022-06-17)
- route: make sure param maps contain the same values as params (c7859a1)
8.0.0 (2022-06-03)
ngx-speculoos
is now based on Angular 14.x. It also needs RxJS v7.5+. If you want to use it with an older version of Angular, then stick to the previous version ofngx-speculoos
.
- ngx-speculoos.d.ts is now index.d.ts (7bf3ed0)
7.2.0 (2022-03-03)
- add routeConfig to the stub snapshot and route (768c113)
7.1.0 (2022-02-21)
- allow selecting by type, and getting tokens (a84096b)
- createMock, for easier SpyObj creations (bf9309e)
- introduce stubRoute and deprecate fakeRoute and fakeSnapshot (55de6e2)
- query for custom test elements (53b3a45)
- toHaveTrimmedText matcher (825f19f)
7.0.0 (2021-11-04)
-
ngx-speculoos
is now based on Angular 13.x. It also needs RxJS v7.4+. If you want to use it with an older version of Angular, then stick to the previous version ofngx-speculoos
. -
bump to ng and cli v13 (6ca161c)
6.0.0 (2021-05-13)
- enable Ivy partial compilation (5731919)
- renovate config (2df1219)
- ngx-speculoos now targets Angular 12.0.0 and Ivy only. If you want to use it with Angular 11.x or View Engine, stick to the previous version of ngx-speculoos. Partial Ivy compilation is now enabled, allowing ngcc to skip this package and you to have faster builds! 🚀
5.0.0 (2020-11-20)
- ngx-speculoos is now built against Angular 11.0.0. If you want to use it with Angular 10.x, stick to the previous version of ngx-speculoos.
- bump to Angular v11 (060449f)
4.1.0 (2020-08-15)
- test if html element is visible + corresponding matcher (192a2bd)
4.0.0 (2020-06-26)
- strict and better typings (822963d)
We now properly infer (if possible) the type of the queried element(s). For example:
const testElement = tester.element('div'); // inferred as TestHtmlElement<HTMLDivElement> | null
const testLink = tester.element<HTMLAnchorElement>('.selector'); // inferred as TestHtmlElement<HTMLAnchorElement> | null
const testButtons = tester.elements<HTMLButtonElement>('.btn'); // inferred as Array<TestButton>
const testElements = tester.elements('div'); // inferred as Array<TestHtmlElement<HTMLDivElement>>
const testLinks = tester.elements<HTMLAnchorElement>('.selector'); // inferred as Array<TestHtmlElement<HTMLAnchorElement>>
- ngx-speculoos is now built against Angular 10.0.0. If you want to use it with Angular 9.x, stick to the previous version of ngx-speculoos.
3.0.0 (2020-02-07)
- ngx-speculoos is now built against Angular 9.0.0. If you want to use it with Angular 8.x, stick to the previous version of ngx-speculoos.
- support basic ng-add (80a3aac)
- matchers: update signature for jasmine 3.4.3 (09e1172), closes /github.com/DefinitelyTyped/DefinitelyTyped/commit/b7d7813c5deacde98bcb7a5e63104431b85c09eb#diff-04770c66399ad864e0881886aaf0800
- downgrade compodoc to 1.1.8 because of code block issue on README (bba2b6b), closes #146 compodoc/compodoc#765
- remove reflect polyfill (592249a)
- update to Angular and CLI 9.0.0 (1c0395b)
2.0.0 (2019-05-31)
- add @angular/platform-browser as a peer dep (e354723)
- add ngx-speculoos as an implicit dependency (df43796)
- codelyzer rule name (3b7ff6c)
- combine imports (17ac60f)
- do not lint public_api.ts (6179153)
- jsdoc formatting (3c95bc6)
- readonly is already public (3a159e3)
- update polyfill.ts with latest (27b885a)
- upgrade to Angular 8.0.0 (f46816e)
- ngx-speculoos is now built against Angular 8.0.0. If you want to use it with Angular 7.x, stick to the previous version of ngx-speculoos.
1.1.0 (2018-11-17)
1.0.0 (2018-11-02)
This 1.0.0 version is based and tested on Angular 7.0.0, although it should run fine with Angular 6. Future versions are not guaranteed to support Angular 6, though. We encourage you to ugrade.
0.2.3 (2018-06-17)
0.2.2 (2018-06-04)
0.2.1 (2018-06-04)
0.2.0 (2018-05-28)
- custom matchers always return false if no element (a282826)
- fix toHaveText on empty text contents (0172de3)
- add custom matcher for class (39d1f3a)
- add custom matcher for value (eee2e97)
- custom matcher toBeChecked (065ab58)
- custom matcher toContainText (#13) (e0a0472)
- custom matcher toHaveSelectedIndex (e1163fb)
- custom matcher toHaveSelectedLabel (2c49330)
- custom matcher toHaveSelectedValue (085fd65)
- custom matcher toHaveText (8036c22)