- 61e2668f: update eslint, eslint-config-airbnb-base and eslint-plugin-import
- Updated dependencies [61e2668f]
- @open-wc/[email protected]
- 773e5b65: fix: add a type for lit v1 renderable
- ebbea0d5: Force lit-html dependency tree for correct types construction
- b762707d: Feat/customize render
- 065b82a8: Add generics for oneEvent test helper function
- 987c9cd2: Add lit-html as depenency to support the generated types in strict package managers
- 592196ce: Relax type of
waitUntil
predicate parameter
- de7f7b1a: Fix the typescript typings in testing helpers for projects that depend on
lit
package
- 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';
-
-
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.
- 45c7fcc1: Import scoped registries code dynamically to prevent library consumers that do not leverage this API from being bound to its load order requirements.
- 72e67571: Fix type error caused by
getScopedElementsTemplate
by addingScopedElementsTemplateGetter
- Updated dependencies [4b9ea6f6]
- Updated dependencies [c05d92fb]
- Updated dependencies [edca5a82]
- Updated dependencies [0513917c]
- Updated dependencies [ff17798f]
- Updated dependencies [1e54d297]
- Updated dependencies [a0b5e360]
- @open-wc/[email protected]
- 72e67571: Fix type error caused by
getScopedElementsTemplate
by addingScopedElementsTemplateGetter
-
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.
- 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]
- @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';
-
- Updated dependencies [edca5a82]
- @open-wc/[email protected]
- 4a81d791: Add types folder to npm artifacts
- Updated dependencies [4a81d791]
- @open-wc/[email protected]
- 17e9e7dc: Change type distribution workflow
- Updated dependencies [17e9e7dc]
- @open-wc/[email protected]
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.8.10 (2020-10-02)
- testing-helpers: replace ts-expect-error with ignore (f64ed31)
1.8.9 (2020-08-19)
- scoped-elements: add host to the mixin type for static props (88ffd99)
1.8.8 (2020-08-16)
Note: Version bump only for package @open-wc/testing-helpers
1.8.7 (2020-08-14)
Note: Version bump only for package @open-wc/testing-helpers
1.8.6 (2020-08-05)
Note: Version bump only for package @open-wc/testing-helpers
1.8.5 (2020-08-04)
- testing-helpers: change default timeout to 1000ms for waitUntil (dacf46f)
1.8.4 (2020-07-08)
Note: Version bump only for package @open-wc/testing-helpers
1.8.3 (2020-06-15)
- testing-helpers: auto-generate scoped elements test wrapper name (439b39f)
1.8.2 (2020-05-01)
- testing-helpers: await to the wrong element (79575e1)
- testing-helpers: move peerDependencies to dependencies (b2380eb)
1.8.1 (2020-04-26)
1.8.0 (2020-04-26)
- testing-helpers: add scoped-elements support (f265d9e)
1.7.2 (2020-04-20)
Note: Version bump only for package @open-wc/testing-helpers
1.7.1 (2020-04-12)
Note: Version bump only for package @open-wc/testing-helpers
1.7.0 (2020-04-05)
- testing-helpers: add fixture option to define wrapper el (e7db9f6)
1.6.2 (2020-03-19)
- testing-helpers: publish typescript definition files again (a411293)
1.6.1 (2020-03-19)
Note: Version bump only for package @open-wc/testing-helpers
1.6.0 (2020-03-10)
1.5.3 (2020-03-10)
Note: Version bump only for package @open-wc/testing-helpers
1.5.2 (2020-02-09)
Note: Version bump only for package @open-wc/testing-helpers
1.5.1 (2020-01-19)
Note: Version bump only for package @open-wc/testing-helpers
1.5.0 (2020-01-07)
- testing-helpers: add waitUntil helper (bef5dac)
1.4.0 (2019-11-24)
- update to use auto compatibility of es-dev-server (f6d085e)
1.3.0 (2019-11-02)
1.2.3 (2019-10-25)
1.2.2 (2019-10-23)
- add package keywords (#859) (cd78405)
- do not destructure exports to support es-module-lexer (3709413)
1.2.1 (2019-08-18)
- include *.ts files in npm packages (8087906)
1.2.0 (2019-08-18)
- add type definition files for testing (462a29f)
1.1.7 (2019-08-05)
- cleanup package.json scripts (be6bdb5)
1.1.6 (2019-08-04)
Note: Version bump only for package @open-wc/testing-helpers
1.1.5 (2019-08-04)
Note: Version bump only for package @open-wc/testing-helpers
1.1.4 (2019-08-04)
Note: Version bump only for package @open-wc/testing-helpers
1.1.3 (2019-08-04)
Note: Version bump only for package @open-wc/testing-helpers
1.1.2 (2019-07-30)
Note: Version bump only for package @open-wc/testing-helpers
1.1.1 (2019-07-28)
Note: Version bump only for package @open-wc/testing-helpers
1.1.0 (2019-07-27)
1.0.24 (2019-07-26)
Note: Version bump only for package @open-wc/testing-helpers
1.0.23 (2019-07-25)
Note: Version bump only for package @open-wc/testing-helpers
1.0.22 (2019-07-24)
Note: Version bump only for package @open-wc/testing-helpers
1.0.21 (2019-07-24)
Note: Version bump only for package @open-wc/testing-helpers
1.0.20 (2019-07-24)
Note: Version bump only for package @open-wc/testing-helpers
1.0.19 (2019-07-24)
Note: Version bump only for package @open-wc/testing-helpers
1.0.18 (2019-07-22)
Note: Version bump only for package @open-wc/testing-helpers
1.0.17 (2019-07-22)
Note: Version bump only for package @open-wc/testing-helpers
1.0.16 (2019-07-19)
Note: Version bump only for package @open-wc/testing-helpers
1.0.15 (2019-07-17)
Note: Version bump only for package @open-wc/testing-helpers
1.0.14 (2019-07-17)
Note: Version bump only for package @open-wc/testing-helpers
1.0.13 (2019-07-17)
Note: Version bump only for package @open-wc/testing-helpers
1.0.12 (2019-07-15)
- adopt to new testing-karma setup (bdcc717)
1.0.11 (2019-07-13)
Note: Version bump only for package @open-wc/testing-helpers
1.0.10 (2019-07-08)
Note: Version bump only for package @open-wc/testing-helpers
1.0.9 (2019-07-08)
- use file extensions for imports to support import maps (c711b13)
1.0.8 (2019-07-08)
Note: Version bump only for package @open-wc/testing-helpers
1.0.7 (2019-07-08)
Note: Version bump only for package @open-wc/testing-helpers
1.0.6 (2019-07-02)
Note: Version bump only for package @open-wc/testing-helpers
1.0.5 (2019-07-02)
Note: Version bump only for package @open-wc/testing-helpers
1.0.4 (2019-06-30)
Note: Version bump only for package @open-wc/testing-helpers
1.0.3 (2019-06-23)
Note: Version bump only for package @open-wc/testing-helpers
1.0.2 (2019-06-23)
Note: Version bump only for package @open-wc/testing-helpers
1.0.1 (2019-06-18)
Note: Version bump only for package @open-wc/testing-helpers
1.0.0 (2019-06-14)
- Replaced webpack html plugin with index html plugin
0.9.6 (2019-06-08)
Note: Version bump only for package @open-wc/testing-helpers
0.9.5 (2019-05-25)
Note: Version bump only for package @open-wc/testing-helpers
0.9.4 (2019-05-19)
Note: Version bump only for package @open-wc/testing-helpers
0.9.3 (2019-05-14)
- testing-helpers: more work for IE11 flaky focus/blur (29bedd1)
0.9.2 (2019-05-14)
0.9.1 (2019-05-06)
Note: Version bump only for package @open-wc/testing-helpers
0.9.0 (2019-05-06)
- update to latest testing-karma config syntax (465bfe0)
0.8.10 (2019-05-03)
Note: Version bump only for package @open-wc/testing-helpers
0.8.9 (2019-04-28)
0.8.8 (2019-04-14)
- update generator usage (5d284d4)
0.8.7 (2019-04-13)
Note: Version bump only for package @open-wc/testing-helpers
0.8.6 (2019-04-08)
Note: Version bump only for package @open-wc/testing-helpers
0.8.5 (2019-04-06)
Note: Version bump only for package @open-wc/testing-helpers
0.8.4 (2019-04-05)
- do not assume available global types of users (cd394d9)
0.8.3 (2019-03-31)
- adopt new karma setup for all packages (1888260)
0.8.2 (2019-03-24)
Note: Version bump only for package @open-wc/testing-helpers
0.8.1 (2019-03-23)
- do not assume globally setup mocha types (977d5b4)
0.8.0 (2019-03-23)
- add types + linting & improve intellisense (b6d260c)
0.7.25 (2019-03-20)
Note: Version bump only for package @open-wc/testing-helpers
0.7.24 (2019-03-14)
- testing-helpers: ensure ShadyDOM finished its job in fixture (4fbe93d)
0.7.23 (2019-03-14)
- testing-helpers: make fixture type generic (613a672)
0.7.22 (2019-03-08)
Note: Version bump only for package @open-wc/testing-helpers
0.7.21 (2019-03-06)
Note: Version bump only for package @open-wc/testing-helpers
0.7.20 (2019-03-04)
- testing-helpers: correct usage of oneEvent in readme (a16969a)
0.7.19 (2019-03-03)
Note: Version bump only for package @open-wc/testing-helpers
0.7.18 (2019-02-26)
Note: Version bump only for package @open-wc/testing-helpers
0.7.17 (2019-02-24)
- testing-helpers: add time before triggering focus/blur (only IE) (f77cfa2)
0.7.16 (2019-02-16)
- update package repository fields with monorepo details (cb1acb7)
0.7.15 (2019-02-14)
Note: Version bump only for package @open-wc/testing-helpers
0.7.14 (2019-02-13)
- testing-helpers: raise peer dependency of lit-html to 1.x (1744317)
0.7.13 (2019-02-11)
- testing-helpers: document oneEvent, triggerFocusFor, triggerBlurFor (a591611)
- testing-helpers: use asynchronous fixtures (7b6372b)
0.7.12 (2019-02-04)
- testing-helpers: add
await elementUpdated(el)
supports stencil (c442f21)
0.7.11 (2019-02-02)
- unify npm readme header for all open-wc packages (1bac939)
0.7.10 (2019-02-02)
Note: Version bump only for package @open-wc/testing-helpers
0.7.9 (2019-01-26)
- align all open-wc readme headers (b589429)
0.7.8 (2019-01-26)
- testing-helpers: fixture waits for elements updateComplete (a80a625)
- testing-helpers: flaky IE11 blur/focus helpers (aa91e06)
0.7.7 (2019-01-24)
- add docu for fixtureCleanup (ab0170a)
0.7.6 (2019-01-20)
Note: Version bump only for package @open-wc/testing-helpers
0.7.5 (2019-01-19)
0.7.4 (2019-01-19)
Note: Version bump only for package @open-wc/testing-helpers
0.7.3 (2019-01-16)
- improve documentation (4f5472f)
0.7.2 (2019-01-09)
Note: Version bump only for package @open-wc/testing-helpers
0.7.1 (2019-01-03)
- testing-helpers: add await to fixture example in docs (393f3ed)
0.7.0 (2019-01-02)
- testing-helpers: fixture can handle strings and TemplateResults (0649ea0)
0.6.4 (2018-12-23)
- testing-helpers: on IE set timeout to 2ms for blur/focus trigger (c62b684)
0.6.3 (2018-12-22)
- testing-helpers: adopt fixture/litFixture typings (57764fe)
- testing-helpers: remove deprecated flush (df077dc)
0.6.2 (2018-12-20)
- properly apply prettier (a12bb09)
0.6.1 (2018-12-20)
Note: Version bump only for package @open-wc/testing-helpers
0.6.0 (2018-12-19)
- use extendable karma configs by default (8fd9435)
0.5.2 (2018-12-18)
Note: Version bump only for package @open-wc/testing-helpers
0.5.1 (2018-12-13)
- apply prettier; add lint-staged (43acfad)
0.5.0 (2018-12-11)
- add typescript type declaration files (f5cb243)
0.4.3 (2018-12-02)
Note: Version bump only for package @open-wc/testing-helpers
0.4.2 (2018-12-01)
Note: Version bump only for package @open-wc/testing-helpers
0.4.1 (2018-11-30)
- move documentation to READMEs of packages (b4a0426)
0.4.0 (2018-11-26)
- use latest testing-karma features (5edc46c)
0.3.0 (2018-11-18)
- sinon is no longer a mandatory package (ef97cec)
- use es module chai version; auto-register side-effects (263f4ff)
0.2.1 (2018-11-16)
Note: Version bump only for package @open-wc/testing-helpers
0.2.0 (2018-11-15)
- simplify testing-helpers names (68e1cb5)
0.1.2 (2018-11-05)
- add karma.conf.js to npmignore (9700532)
0.1.1 (2018-11-05)
- add an npmignore file (ddceeca)
- add testing-helpers package (90428f7)