- 735b0092: Avoid saving unchanged snapshots
- Updated dependencies [735b0092]
- @open-wc/[email protected]
- ae9fe3e7: upgrade to chai-dom v1.11.0
- 19b951b6: update semantic-dom-diff dependency
- 48a853fa: Fix deps issues with @esm-bundle/chai
- 773e5b65: fix: add a type for lit v1 renderable
- Updated dependencies [773e5b65]
- @open-wc/[email protected]
- ebbea0d5: Force lit-html dependency tree for correct types construction
- Updated dependencies [ebbea0d5]
- @open-wc/[email protected]
- b762707d: Feat/customize render
- Updated dependencies [b762707d]
- @open-wc/[email protected]
- 987c9cd2: Add lit-html as depenency to support the generated types in strict package managers
- Updated dependencies [987c9cd2]
- @open-wc/[email protected]
- de7f7b1a: Fix the typescript typings in testing helpers for projects that depend on
lit
package - Updated dependencies [de7f7b1a]
- @open-wc/[email protected]
- 70f52431: export chai in index.d.ts
- 1649ba46: Release bump version as major versions have already been used and unpublished in an accidental publish about a year ago.
- Updated dependencies [1649ba46]
- @open-wc/[email protected]
-
689c9ea3: Upgrade to support latest
lit
package.-
the exports
html
andunsafeStatic
are now deprecated we recommend to import them directly fromlit/static-html.js
; -
You need to load a polyfill for the scoped registry if you wanna use the
scopedElements
option -
We now enforce our entrypoints via an export map
-
The side effect free import got renamed to
pure
// old import { fixture } from '@open-wc/testing-helpers/index-no-side-effects.js'; // new import { fixture } from '@open-wc/testing-helpers/pure';
-
-
a5a79a25: We now use an es module version of chai from
@esm-bundle/chai
.
-
b9b11adc: support snapshot testing with Web Test Runner
-
22c4017c: Undo deprecation of the
html
andunsafeStatic
exports to enable matching lit versions to what is used in fixture.A typical testing file looks like this
import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x it('works for tags', async () => { const el = await fixture( html` <my-el></my-el> `, ); });
With this export you can combine the usage of lit-html 2.x for the fixture and template rendering in lit-html 1.x
import { html as fixtureHtml, fixture } from '@open-wc/testing'; // fixtureHtml will be lit-html 2.x import { html } from 'my-library'; // html will be lit-html 1.x it('works for tags', async () => { const el = await fixture(fixtureHtml`<my-el></my-el>`); }); it('can be combined', async () => { class MyExtension extends LibraryComponent { render() { // needs to be lit-html 1.x as the library component is using LitElement with lit-html 1.x return html` <p>...</p> `; } } // fixture requires a lit-html 2.x template const el = await fixture(fixtureHtml`<my-el></my-el>`); });
NOTE: If you are using fixture for testing your lit-html 1.x directives then this will no longer work. A possible workaround for this is
import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x import { render, html as html1, fancyDirective } from 'my-library'; // html and render will be lit-html 1.x it('is a workaround for directives', async () => { const node = document.createElement('div'); render(html1`<p>Testing ${fancyDirective('output')}</p>`, node); // you can either cleanup yourself or use fixture const el = await fixture( html` ${node} `, ); expect(el.children[0].innerHTML).toBe('Testing [[output]]'); });
- 4b9ea6f6: Use [email protected] stable based dependencies across the project.
- 40837d10: - use latest axe-core
- allow not required attributes in role testing
- 945d1d9c: Remove unused dependency on
mocha
as the environment should bring it. - 89fdfa03: Do not generate chai plugins on user install. Do it only on monorepo install.
- 45c7fcc1: Import scoped registries code dynamically to prevent library consumers that do not leverage this API from being bound to its load order requirements.
- Updated dependencies [b9b11adc]
- Updated dependencies [4b9ea6f6]
- Updated dependencies [689c9ea3]
- Updated dependencies [22c4017c]
- Updated dependencies [b6e868d5]
- Updated dependencies [40837d10]
- Updated dependencies [45c7fcc1]
- Updated dependencies [580ce0ee]
- Updated dependencies [72e67571]
- Updated dependencies [6940a3cb]
- @open-wc/[email protected]
- @open-wc/[email protected]
- [email protected]
-
22c4017c: Undo deprecation of the
html
andunsafeStatic
exports to enable matching lit versions to what is used in fixture.A typical testing file looks like this
import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x it('works for tags', async () => { const el = await fixture( html` <my-el></my-el> `, ); });
With this export you can combine the usage of lit-html 2.x for the fixture and template rendering in lit-html 1.x
import { html as fixtureHtml, fixture } from '@open-wc/testing'; // fixtureHtml will be lit-html 2.x import { html } from 'my-library'; // html will be lit-html 1.x it('works for tags', async () => { const el = await fixture(fixtureHtml`<my-el></my-el>`); }); it('can be combined', async () => { class MyExtension extends LibraryComponent { render() { // needs to be lit-html 1.x as the library component is using LitElement with lit-html 1.x return html` <p>...</p> `; } } // fixture requires a lit-html 2.x template const el = await fixture(fixtureHtml`<my-el></my-el>`); });
NOTE: If you are using fixture for testing your lit-html 1.x directives then this will no longer work. A possible workaround for this is
import { html, fixture } from '@open-wc/testing'; // html will be lit-html 2.x import { render, html as html1, fancyDirective } from 'my-library'; // html and render will be lit-html 1.x it('is a workaround for directives', async () => { const node = document.createElement('div'); render(html1`<p>Testing ${fancyDirective('output')}</p>`, node); // you can either cleanup yourself or use fixture const el = await fixture( html` ${node} `, ); expect(el.children[0].innerHTML).toBe('Testing [[output]]'); });
- Updated dependencies [22c4017c]
- @open-wc/[email protected]
- 4b9ea6f6: Use [email protected] stable based dependencies across the project.
- 945d1d9c: Remove unused dependency on
mocha
as the environment should bring it. - 45c7fcc1: Import scoped registries code dynamically to prevent library consumers that do not leverage this API from being bound to its load order requirements.
- Updated dependencies [4b9ea6f6]
- Updated dependencies [45c7fcc1]
- @open-wc/[email protected]
- 40837d10: - use latest axe-core
- allow not required attributes in role testing
- Updated dependencies [40837d10]
- Updated dependencies [580ce0ee]
- [email protected]
- @open-wc/[email protected]
- b9b11adc: support snapshot testing with Web Test Runner
- Updated dependencies [b9b11adc]
- @open-wc/[email protected]
- 89fdfa03: Do not generate chai plugins on user install. Do it only on monorepo install.
-
689c9ea3: Upgrade to support latest
lit
package.-
the exports
html
andunsafeStatic
are now deprecated we recommend to import them directly fromlit/static-html.js
; -
You need to load a polyfill for the scoped registry if you wanna use the
scopedElements
option -
We now enforce our entrypoints via an export map
-
The side effect free import got renamed to
pure
// old import { fixture } from '@open-wc/testing-helpers/index-no-side-effects.js'; // new import { fixture } from '@open-wc/testing-helpers/pure';
-
-
a5a79a25: We now use an es module version of chai from
@esm-bundle/chai
.
- Updated dependencies [689c9ea3]
- @open-wc/[email protected]
- aee0ee63: export waitUntil from index-no-side-effects
- 0362fe08: Keep hand written types for semantic-dom-diff for now
- Updated dependencies [0362fe08]
- @open-wc/[email protected]
- 4a81d791: Add types folder to npm artifacts
- Updated dependencies [4a81d791]
- @open-wc/[email protected]
- @open-wc/[email protected]
- 17e9e7dc: Change type distribution workflow
- Updated dependencies [17e9e7dc]
- @open-wc/[email protected]
- @open-wc/[email protected]
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.5.29 (2020-10-03)
Note: Version bump only for package @open-wc/testing
2.5.28 (2020-10-02)
Note: Version bump only for package @open-wc/testing
2.5.27 (2020-09-25)
Note: Version bump only for package @open-wc/testing
2.5.26 (2020-09-11)
Note: Version bump only for package @open-wc/testing
2.5.25 (2020-08-27)
Note: Version bump only for package @open-wc/testing
2.5.24 (2020-08-19)
Note: Version bump only for package @open-wc/testing
2.5.23 (2020-08-16)
Note: Version bump only for package @open-wc/testing
2.5.22 (2020-08-14)
Note: Version bump only for package @open-wc/testing
2.5.21 (2020-08-05)
Note: Version bump only for package @open-wc/testing
2.5.20 (2020-08-04)
Note: Version bump only for package @open-wc/testing
2.5.19 (2020-07-08)
Note: Version bump only for package @open-wc/testing
2.5.18 (2020-06-15)
Note: Version bump only for package @open-wc/testing
2.5.17 (2020-05-25)
Note: Version bump only for package @open-wc/testing
2.5.16 (2020-05-01)
Note: Version bump only for package @open-wc/testing
2.5.15 (2020-04-26)
Note: Version bump only for package @open-wc/testing
2.5.14 (2020-04-26)
- semantic-dom-diff: allow assertion message (c8a3b18)
2.5.13 (2020-04-21)
- testing: export types from chai (ce4b91a)
2.5.12 (2020-04-20)
Note: Version bump only for package @open-wc/testing
2.5.11 (2020-04-12)
Note: Version bump only for package @open-wc/testing
2.5.10 (2020-04-06)
- testing: auto load chai plugin typings (a895e3a)
2.5.9 (2020-04-05)
Note: Version bump only for package @open-wc/testing
2.5.8 (2020-03-19)
Note: Version bump only for package @open-wc/testing
2.5.7 (2020-03-19)
Note: Version bump only for package @open-wc/testing
2.5.6 (2020-03-10)
Note: Version bump only for package @open-wc/testing
2.5.5 (2020-03-10)
Note: Version bump only for package @open-wc/testing
2.5.4 (2020-02-09)
Note: Version bump only for package @open-wc/testing
2.5.3 (2020-02-06)
- testing: export "waitUntil" type (730514f)
2.5.2 (2020-01-31)
- skip brooken published versions (25d21de)
2.5.1 (2020-01-19)
Note: Version bump only for package @open-wc/testing
2.5.0 (2020-01-07)
- testing-helpers: add waitUntil helper (bef5dac)
2.4.4 (2020-01-07)
- testing: add missing files to npm (962fc10)
2.4.3 (2020-01-07)
- testing: compatibility with webpack (e355027)
2.4.2 (2019-12-05)
Note: Version bump only for package @open-wc/testing
2.4.1 (2019-11-24)
Note: Version bump only for package @open-wc/testing
2.4.0 (2019-11-19)
- update testing to use auto compatibility of es-dev-server (7d5ea56)
2.3.9 (2019-11-02)
Note: Version bump only for package @open-wc/testing
2.3.8 (2019-10-25)
2.3.7 (2019-10-23)
2.3.6 (2019-10-22)
Note: Version bump only for package @open-wc/testing
2.3.5 (2019-10-13)
Note: Version bump only for package @open-wc/testing
2.3.4 (2019-09-15)
Note: Version bump only for package @open-wc/testing
2.3.3 (2019-08-27)
- testing: load types for chai plugins (f122098)
2.3.2 (2019-08-20)
- do not destructure exports to support es-module-lexer (3709413)
2.3.1 (2019-08-18)
- include *.ts files in npm packages (8087906)
2.3.0 (2019-08-18)
- testing: use chai instead of @bundled-es-modules/chai (53579c2)
- add type definition files for testing (462a29f)
2.2.8 (2019-08-07)
Note: Version bump only for package @open-wc/testing
2.2.7 (2019-08-05)
- cleanup package.json scripts (be6bdb5)
2.2.6 (2019-08-04)
Note: Version bump only for package @open-wc/testing
2.2.5 (2019-08-04)
Note: Version bump only for package @open-wc/testing
2.2.4 (2019-08-04)
Note: Version bump only for package @open-wc/testing
2.2.3 (2019-08-04)
Note: Version bump only for package @open-wc/testing
2.2.2 (2019-07-30)
Note: Version bump only for package @open-wc/testing
2.2.1 (2019-07-28)
Note: Version bump only for package @open-wc/testing
2.2.0 (2019-07-27)
2.1.4 (2019-07-26)
Note: Version bump only for package @open-wc/testing
2.1.3 (2019-07-25)
Note: Version bump only for package @open-wc/testing
2.1.2 (2019-07-24)
Note: Version bump only for package @open-wc/testing
2.1.1 (2019-07-24)
Note: Version bump only for package @open-wc/testing
2.1.0 (2019-07-24)
- testing: adding a11y testing via chai-a11y-axe plugin (5f05b53)
2.0.7 (2019-07-24)
Note: Version bump only for package @open-wc/testing
2.0.6 (2019-07-22)
Note: Version bump only for package @open-wc/testing
2.0.5 (2019-07-22)
Note: Version bump only for package @open-wc/testing
2.0.4 (2019-07-19)
Note: Version bump only for package @open-wc/testing
2.0.3 (2019-07-17)
Note: Version bump only for package @open-wc/testing
2.0.2 (2019-07-17)
Note: Version bump only for package @open-wc/testing
2.0.1 (2019-07-17)
Note: Version bump only for package @open-wc/testing
2.0.0 (2019-07-16)
- testing: upgrade testing-karma to latest version (2e1be09)
- testing: Removed the legacy flag which used webpack on older browsers. We now use karma-esm everywhere which supports older browsers with a compatibility option. For more details please see the changelog of testing-karma and karma-esm.
1.0.15 (2019-07-16)
- testing: bugfix release to keep non breaking testing-karma version (99b4905)
1.0.14 (2019-07-15)
- adopt to new testing-karma setup (bdcc717)
1.0.13 (2019-07-14)
Note: Version bump only for package @open-wc/testing
1.0.12 (2019-07-13)
Note: Version bump only for package @open-wc/testing
1.0.11 (2019-07-08)
Note: Version bump only for package @open-wc/testing
1.0.10 (2019-07-08)
Note: Version bump only for package @open-wc/testing
1.0.9 (2019-07-08)
Note: Version bump only for package @open-wc/testing
1.0.8 (2019-07-08)
Note: Version bump only for package @open-wc/testing
1.0.7 (2019-07-08)
Note: Version bump only for package @open-wc/testing
1.0.6 (2019-07-02)
Note: Version bump only for package @open-wc/testing
1.0.5 (2019-07-02)
Note: Version bump only for package @open-wc/testing
1.0.4 (2019-06-30)
Note: Version bump only for package @open-wc/testing
1.0.3 (2019-06-23)
Note: Version bump only for package @open-wc/testing
1.0.2 (2019-06-23)
Note: Version bump only for package @open-wc/testing
1.0.1 (2019-06-18)
Note: Version bump only for package @open-wc/testing
1.0.0 (2019-06-14)
- Replaced webpack html plugin with index html plugin
0.12.6 (2019-06-08)
Note: Version bump only for package @open-wc/testing
0.12.5 (2019-05-25)
Note: Version bump only for package @open-wc/testing
0.12.4 (2019-05-19)
Note: Version bump only for package @open-wc/testing
0.12.3 (2019-05-14)
Note: Version bump only for package @open-wc/testing
0.12.2 (2019-05-14)
Note: Version bump only for package @open-wc/testing
0.12.1 (2019-05-06)
Note: Version bump only for package @open-wc/testing
0.12.0 (2019-05-06)
- update to latest testing-karma config syntax (465bfe0)
0.11.7 (2019-05-03)
Note: Version bump only for package @open-wc/testing
0.11.6 (2019-04-30)
Note: Version bump only for package @open-wc/testing
0.11.5 (2019-04-28)
0.11.4 (2019-04-14)
- update generator usage (5d284d4)
0.11.3 (2019-04-13)
Note: Version bump only for package @open-wc/testing
0.11.2 (2019-04-08)
Note: Version bump only for package @open-wc/testing
0.11.1 (2019-04-08)
Note: Version bump only for package @open-wc/testing
0.11.0 (2019-04-08)
- semantic-dom-diff: add support for snapshot testing (f7a675a)
0.10.12 (2019-04-06)
Note: Version bump only for package @open-wc/testing
0.10.11 (2019-04-05)
- do not assume available global types of users (cd394d9)
0.10.10 (2019-04-03)
Note: Version bump only for package @open-wc/testing
0.10.9 (2019-03-31)
- semantic-dom-diff: add get-diffable-html.js to npm bundle (7ee3ba9)
0.10.8 (2019-03-31)
Note: Version bump only for package @open-wc/testing
0.10.7 (2019-03-31)
- testing: update instructions for new karma config setup (2de10bf)
0.10.6 (2019-03-31)
- adopt new karma setup for all packages (1888260)
0.10.5 (2019-03-29)
Note: Version bump only for package @open-wc/testing
0.10.4 (2019-03-28)
Note: Version bump only for package @open-wc/testing
0.10.3 (2019-03-27)
Note: Version bump only for package @open-wc/testing
0.10.2 (2019-03-24)
- adjust generator-open-wc links to create (cc014b1)
0.10.1 (2019-03-23)
- do not assume globally setup mocha types (977d5b4)
0.10.0 (2019-03-23)
- add types + linting & improve intellisense (b6d260c)
0.9.28 (2019-03-20)
Note: Version bump only for package @open-wc/testing
0.9.27 (2019-03-14)
Note: Version bump only for package @open-wc/testing
0.9.26 (2019-03-14)
Note: Version bump only for package @open-wc/testing
0.9.25 (2019-03-08)
Note: Version bump only for package @open-wc/testing
0.9.24 (2019-03-06)
Note: Version bump only for package @open-wc/testing
0.9.23 (2019-03-04)
Note: Version bump only for package @open-wc/testing
0.9.22 (2019-03-03)
Note: Version bump only for package @open-wc/testing
0.9.21 (2019-02-26)
Note: Version bump only for package @open-wc/testing
0.9.20 (2019-02-24)
Note: Version bump only for package @open-wc/testing
0.9.19 (2019-02-16)
- update package repository fields with monorepo details (cb1acb7)
0.9.18 (2019-02-14)
Note: Version bump only for package @open-wc/testing
0.9.17 (2019-02-13)
- testing: add info to docs to test legacy browsers (012a867)
0.9.16 (2019-02-11)
Note: Version bump only for package @open-wc/testing
0.9.15 (2019-02-04)
Note: Version bump only for package @open-wc/testing
0.9.14 (2019-02-02)
- unify npm readme header for all open-wc packages (1bac939)
0.9.13 (2019-02-02)
Note: Version bump only for package @open-wc/testing
0.9.12 (2019-01-31)
0.9.11 (2019-01-26)
Note: Version bump only for package @open-wc/testing
0.9.10 (2019-01-26)
Note: Version bump only for package @open-wc/testing
0.9.9 (2019-01-24)
- add docu for fixtureCleanup (ab0170a)
0.9.8 (2019-01-23)
Note: Version bump only for package @open-wc/testing
0.9.7 (2019-01-20)
- refactor generators (1dab1f4)
0.9.6 (2019-01-19)
0.9.5 (2019-01-19)
Note: Version bump only for package @open-wc/testing
0.9.4 (2019-01-16)
- improve documentation (4f5472f)
0.9.3 (2019-01-13)
Note: Version bump only for package @open-wc/testing
0.9.2 (2019-01-09)
- docu typos (aafd5e4)
0.9.1 (2019-01-03)
Note: Version bump only for package @open-wc/testing
0.9.0 (2019-01-02)
- testing-helpers: fixture can handle strings and TemplateResults (0649ea0)
0.8.6 (2018-12-29)
Note: Version bump only for package @open-wc/testing
0.8.5 (2018-12-23)
Note: Version bump only for package @open-wc/testing
0.8.4 (2018-12-22)
Note: Version bump only for package @open-wc/testing
0.8.3 (2018-12-22)
Note: Version bump only for package @open-wc/testing
0.8.2 (2018-12-20)
- properly apply prettier (a12bb09)
0.8.1 (2018-12-20)
Note: Version bump only for package @open-wc/testing
0.8.0 (2018-12-19)
- use extendable karma configs by default (8fd9435)
0.7.2 (2018-12-18)
- add testing generator + update docu (81c765d)
0.7.1 (2018-12-13)
- apply prettier; add lint-staged (43acfad)
0.7.0 (2018-12-11)
- add typescript type declaration files (f5cb243)
0.6.3 (2018-12-02)
Note: Version bump only for package @open-wc/testing
0.6.2 (2018-12-01)
Note: Version bump only for package @open-wc/testing
0.6.1 (2018-11-30)
- move documentation to READMEs of packages (b4a0426)
0.6.0 (2018-11-26)
- use latest testing-karma features (5edc46c)
0.5.0 (2018-11-18)
- sinon is no longer a mandatory package (ef97cec)
- use es module chai version; auto-register side-effects (263f4ff)
0.4.2 (2018-11-18)
Note: Version bump only for package @open-wc/testing
0.4.1 (2018-11-16)
Note: Version bump only for package @open-wc/testing
0.4.0 (2018-11-15)
- simplify testing-helpers names (68e1cb5)
0.3.2 (2018-11-12)
Note: Version bump only for package @open-wc/testing
0.3.1 (2018-11-05)
- add karma.conf.js to npmignore (9700532)
0.3.0 (2018-11-05)
- add an npmignore file (ddceeca)
- testing: refactor using testing-helpers, chai-dom-equals (d6ac78c)
0.2.5 (2018-10-28)
- use version ranges (694e137)
0.2.4 (2018-10-27)
- deps: update dependency sinon to v7.1.0 (99a095e)
0.2.3 (2018-10-14)
- deps: update dependency sinon to v7 (a50d8c8)
0.2.2 (2018-10-10)
Note: Version bump only for package @open-wc/testing
0.2.1 (2018-10-07)
Note: Version bump only for package @open-wc/testing
- rename test to testing (d171018)