@blockquote/create-wc 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@open-wc/eslint-config": "^13.1.0",
|
|
62
62
|
"eslint": "^10.8.1",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
|
-
"globals": "^17.
|
|
64
|
+
"globals": "^17.11.0",
|
|
65
65
|
"prettier": "^3.9.6"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
@@ -13,13 +13,17 @@ describe('<%= className %>', () => {
|
|
|
13
13
|
* @type {import('../src/index').<%= className %>}
|
|
14
14
|
*/
|
|
15
15
|
let el;
|
|
16
|
+
|
|
17
|
+
/** @type {string} */
|
|
16
18
|
let elShadowRoot;
|
|
19
|
+
|
|
20
|
+
/** @type {ReturnType<typeof utils.getElementLocatorSelectors>} */
|
|
17
21
|
let elLocator;
|
|
18
22
|
|
|
19
23
|
describe('Semantic Dom and a11y', () => {
|
|
20
24
|
beforeAll(async () => {
|
|
21
25
|
el = await fixture(html`<<%= tagName %>>light-dom</<%= tagName %>>`);
|
|
22
|
-
elShadowRoot = el?.shadowRoot?.innerHTML;
|
|
26
|
+
elShadowRoot = el?.shadowRoot?.innerHTML ?? '';
|
|
23
27
|
elLocator = utils.getElementLocatorSelectors(el);
|
|
24
28
|
});
|
|
25
29
|
|
|
@@ -60,6 +64,9 @@ describe('<%= className %>', () => {
|
|
|
60
64
|
it('should increment value on click', async () => {
|
|
61
65
|
const button = elLocator.getByText('Counter: 5');
|
|
62
66
|
const elButton = button.query();
|
|
67
|
+
if (!elButton) {
|
|
68
|
+
throw new Error('Button not found');
|
|
69
|
+
}
|
|
63
70
|
await button.dblClick();
|
|
64
71
|
await el.updateComplete;
|
|
65
72
|
expect(elButton.textContent).toContain('Counter: 7');
|