@stencil/vitest 1.0.0 → 1.1.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/README.md +35 -3
- package/dist/bin/stencil-test.js +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/testing/html-serializer.d.ts.map +1 -1
- package/dist/testing/html-serializer.js +14 -2
- package/dist/testing/matchers.d.ts +23 -7
- package/dist/testing/matchers.d.ts.map +1 -1
- package/package.json +19 -20
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ export default defineVitestConfig({
|
|
|
73
73
|
});
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
[refer Vitest documentation for all configuration options](https://vitest.dev/config/)
|
|
76
|
+
[refer to Vitest's documentation for all configuration options](https://vitest.dev/config/)
|
|
77
77
|
|
|
78
78
|
### 3. Load your components
|
|
79
79
|
|
|
@@ -161,8 +161,8 @@ unmount();
|
|
|
161
161
|
```typescript
|
|
162
162
|
// DOM assertions
|
|
163
163
|
expect(element).toHaveClass('active');
|
|
164
|
-
expect(element).toHaveClasses(['active', 'primary']);
|
|
165
|
-
expect(element).toMatchClasses(['active']); //
|
|
164
|
+
expect(element).toHaveClasses(['active', 'primary']); // Contains all / partial match
|
|
165
|
+
expect(element).toMatchClasses(['active']); // Exact match
|
|
166
166
|
expect(element).toHaveAttribute('aria-label', 'Close');
|
|
167
167
|
expect(element).toEqualAttribute('type', 'button');
|
|
168
168
|
expect(element).toEqualAttributes({ type: 'button', disabled: true });
|
|
@@ -240,6 +240,38 @@ await expect(root).toMatchScreenshot();
|
|
|
240
240
|
|
|
241
241
|
Refer to Vitest's [screenshot testing documentation](https://vitest.dev/guide/snapshot.html#visual-snapshots) for more details.
|
|
242
242
|
|
|
243
|
+
## Utils
|
|
244
|
+
|
|
245
|
+
### `serializeHtml(element, options?)`
|
|
246
|
+
|
|
247
|
+
Serializes an HTML element to a string, including shadow DOM content. Useful for debugging or creating custom assertions.
|
|
248
|
+
|
|
249
|
+
```tsx
|
|
250
|
+
import { serializeHtml } from '@stencil/vitest';
|
|
251
|
+
|
|
252
|
+
const html = serializeHtml(element, {
|
|
253
|
+
serializeShadowRoot: true, // Include shadow DOM (default: true)
|
|
254
|
+
pretty: true, // Prettify output (default: true)
|
|
255
|
+
excludeStyles: true, // Exclude <style> tags (default: true)
|
|
256
|
+
});
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### `prettifyHtml(html)`
|
|
260
|
+
|
|
261
|
+
Formats HTML string with indentation for readability.
|
|
262
|
+
|
|
263
|
+
```tsx
|
|
264
|
+
import { prettifyHtml } from '@stencil/vitest';
|
|
265
|
+
|
|
266
|
+
const formatted = prettifyHtml('<div><span>Hello</span></div>');
|
|
267
|
+
// Returns:
|
|
268
|
+
// <div>
|
|
269
|
+
// <span>
|
|
270
|
+
// Hello
|
|
271
|
+
// </span>
|
|
272
|
+
// </div>
|
|
273
|
+
```
|
|
274
|
+
|
|
243
275
|
## CLI
|
|
244
276
|
|
|
245
277
|
The `stencil-test` CLI wraps both Stencil builds with Vitest testing.
|
package/dist/bin/stencil-test.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import './testing/matchers.js';
|
|
|
2
2
|
import './testing/snapshot-serializer.js';
|
|
3
3
|
export { h } from '@stencil/core';
|
|
4
4
|
export { render } from './testing/render.js';
|
|
5
|
+
export { serializeHtml, prettifyHtml, SerializeOptions } from './testing/html-serializer.js';
|
|
5
6
|
export type { RenderOptions, RenderResult } from './types.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-serializer.d.ts","sourceRoot":"","sources":["../../src/testing/html-serializer.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"html-serializer.d.ts","sourceRoot":"","sources":["../../src/testing/html-serializer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,GAAG,UAAU,GAAG,gBAAgB,GAAG,MAAM,EAC3D,OAAO,GAAE,gBAAqB,GAC7B,MAAM,CAWR;AAoGD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAkDjD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
|
@@ -53,7 +53,11 @@ function serializeElementWithShadow(element, excludeStyles, serializeShadowRoot
|
|
|
53
53
|
}
|
|
54
54
|
html += '>';
|
|
55
55
|
// Add shadow DOM if present and requested
|
|
56
|
-
|
|
56
|
+
// Also check for Stencil non-shadow components with __childNodes (slot polyfill)
|
|
57
|
+
const stencilElem = elem;
|
|
58
|
+
const hasShadowRoot = serializeShadowRoot && 'shadowRoot' in elem && elem.shadowRoot;
|
|
59
|
+
const hasStencilPolyfill = serializeShadowRoot && '__childNodes' in stencilElem && stencilElem.__childNodes;
|
|
60
|
+
if (hasShadowRoot) {
|
|
57
61
|
// Use mock:shadow-root format to match mock-doc's output
|
|
58
62
|
html += '<mock:shadow-root>';
|
|
59
63
|
// Serialize shadow DOM children
|
|
@@ -77,7 +81,15 @@ function serializeElementWithShadow(element, excludeStyles, serializeShadowRoot
|
|
|
77
81
|
html += '</mock:shadow-root>';
|
|
78
82
|
}
|
|
79
83
|
// Add light DOM children
|
|
80
|
-
|
|
84
|
+
// For Stencil non-shadow components with slot polyfill, use __childNodes to access actual DOM
|
|
85
|
+
let childNodes;
|
|
86
|
+
if (hasStencilPolyfill) {
|
|
87
|
+
childNodes = stencilElem.__childNodes;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
childNodes = elem.childNodes;
|
|
91
|
+
}
|
|
92
|
+
const children = Array.from(childNodes);
|
|
81
93
|
for (const child of children) {
|
|
82
94
|
if (child.nodeType === 1) {
|
|
83
95
|
// Element node
|
|
@@ -8,33 +8,49 @@ import type { EventSpy } from '../types.js';
|
|
|
8
8
|
* Custom matchers interface
|
|
9
9
|
*/
|
|
10
10
|
interface CustomMatchers<R = unknown> {
|
|
11
|
+
/** Asserts element has the specified CSS class. */
|
|
11
12
|
toHaveClass(className: string): R;
|
|
13
|
+
/** Asserts element has all specified CSS classes. */
|
|
12
14
|
toHaveClasses(classNames: string[]): R;
|
|
15
|
+
/** Asserts element has exactly the specified CSS classes (no more, no less). */
|
|
13
16
|
toMatchClasses(classNames: string[]): R;
|
|
17
|
+
/** Asserts element has the attribute, optionally with a specific value. */
|
|
14
18
|
toHaveAttribute(attribute: string, value?: string): R;
|
|
19
|
+
/** Asserts element attribute equals the expected value exactly. */
|
|
15
20
|
toEqualAttribute(attribute: string, value: string): R;
|
|
21
|
+
/** Asserts element has all specified attributes with exact values. */
|
|
16
22
|
toEqualAttributes(expectedAttrs: Record<string, string>): R;
|
|
23
|
+
/** Asserts element has the property, optionally with a specific value. */
|
|
17
24
|
toHaveProperty(property: string, value?: any): R;
|
|
25
|
+
/** Asserts element's text content contains the specified text. */
|
|
18
26
|
toHaveTextContent(text: string): R;
|
|
27
|
+
/** Asserts element's trimmed text content equals the expected text exactly. */
|
|
19
28
|
toEqualText(expectedText: string): R;
|
|
20
|
-
|
|
29
|
+
/** Asserts element has an attached shadow root. */
|
|
21
30
|
toHaveShadowRoot(): R;
|
|
31
|
+
/** Asserts element will emit the specified event when interacted with. */
|
|
22
32
|
toEmitEvent(eventName: string): R;
|
|
33
|
+
/** Asserts element's serialized HTML (including shadow DOM) matches expected HTML. */
|
|
23
34
|
toEqualHtml(expectedHtml: string): R;
|
|
35
|
+
/** Asserts element's light DOM HTML (excluding shadow DOM internals) matches expected HTML. */
|
|
24
36
|
toEqualLightHtml(expectedHtml: string): R;
|
|
37
|
+
/** Asserts event spy has received at least one event. */
|
|
25
38
|
toHaveReceivedEvent(): R;
|
|
39
|
+
/** Asserts event spy has received exactly the specified number of events. */
|
|
26
40
|
toHaveReceivedEventTimes(count: number): R;
|
|
41
|
+
/** Asserts event spy's last received event has the expected detail. */
|
|
27
42
|
toHaveReceivedEventDetail(detail: any): R;
|
|
43
|
+
/** Asserts event spy's first received event has the expected detail. */
|
|
28
44
|
toHaveFirstReceivedEventDetail(detail: any): R;
|
|
45
|
+
/** Asserts event spy's last received event has the expected detail. */
|
|
29
46
|
toHaveLastReceivedEventDetail(detail: any): R;
|
|
47
|
+
/** Asserts event spy's nth received event (0-indexed) has the expected detail. */
|
|
30
48
|
toHaveNthReceivedEventDetail(index: number, detail: any): R;
|
|
31
49
|
}
|
|
32
|
-
declare
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
interface AsymmetricMatchersContaining extends CustomMatchers {
|
|
37
|
-
}
|
|
50
|
+
declare module 'vitest' {
|
|
51
|
+
interface Assertion<T = any> extends CustomMatchers<T> {
|
|
52
|
+
}
|
|
53
|
+
interface AsymmetricMatchersContaining extends CustomMatchers {
|
|
38
54
|
}
|
|
39
55
|
}
|
|
40
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchers.d.ts","sourceRoot":"","sources":["../../src/testing/matchers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;GAEG;AACH,UAAU,cAAc,CAAC,CAAC,GAAG,OAAO;IAClC,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC;IAClC,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IACtD,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACtD,iBAAiB,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;IAC5D,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;IACjD,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;IACnC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"mat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MAAM,CAAA;CAAE,CAE1C;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,GAAG,GACV;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,MAAM,CAAA;CAAE,CA0B1C;AAED;;GAEG;AACH,wBAAgB,eAAe,SAsB9B"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/stenciljs/vitest"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.1.1",
|
|
8
8
|
"description": "First-class testing utilities for Stencil design systems with Vitest",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
@@ -56,22 +56,6 @@
|
|
|
56
56
|
"web components",
|
|
57
57
|
"component testing"
|
|
58
58
|
],
|
|
59
|
-
"scripts": {
|
|
60
|
-
"build": "tsc && tsc -p tsconfig.bin.json",
|
|
61
|
-
"dev": "tsc --watch",
|
|
62
|
-
"test:e2e": "pnpm --filter test-project test",
|
|
63
|
-
"test:unit": "vitest run",
|
|
64
|
-
"test:unit:watch": "vitest",
|
|
65
|
-
"test:engines": "pnpm installed-check --no-workspaces --ignore-dev",
|
|
66
|
-
"lint": "eslint .",
|
|
67
|
-
"lint:fix": "eslint . --fix",
|
|
68
|
-
"format": "prettier --check .",
|
|
69
|
-
"format:fix": "prettier --write .",
|
|
70
|
-
"knip": "knip",
|
|
71
|
-
"quality": "pnpm format && pnpm lint && pnpm knip",
|
|
72
|
-
"quality:fix": "pnpm format:fix && pnpm lint:fix && pnpm knip",
|
|
73
|
-
"release": "semantic-release"
|
|
74
|
-
},
|
|
75
59
|
"publishConfig": {
|
|
76
60
|
"access": "public"
|
|
77
61
|
},
|
|
@@ -108,7 +92,7 @@
|
|
|
108
92
|
"dependencies": {
|
|
109
93
|
"jiti": "^2.6.1",
|
|
110
94
|
"local-pkg": "^1.1.2",
|
|
111
|
-
"vitest-environment-stencil": "
|
|
95
|
+
"vitest-environment-stencil": "1.1.1"
|
|
112
96
|
},
|
|
113
97
|
"devDependencies": {
|
|
114
98
|
"@eslint/js": "^9.39.2",
|
|
@@ -132,5 +116,20 @@
|
|
|
132
116
|
"engines": {
|
|
133
117
|
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
|
134
118
|
},
|
|
135
|
-
"
|
|
136
|
-
|
|
119
|
+
"scripts": {
|
|
120
|
+
"build": "tsc && tsc -p tsconfig.bin.json",
|
|
121
|
+
"dev": "tsc --watch",
|
|
122
|
+
"test:e2e": "pnpm --filter test-project test",
|
|
123
|
+
"test:unit": "vitest run",
|
|
124
|
+
"test:unit:watch": "vitest",
|
|
125
|
+
"test:engines": "pnpm installed-check --no-workspaces --ignore-dev",
|
|
126
|
+
"lint": "eslint .",
|
|
127
|
+
"lint:fix": "eslint . --fix",
|
|
128
|
+
"format": "prettier --check .",
|
|
129
|
+
"format:fix": "prettier --write .",
|
|
130
|
+
"knip": "knip",
|
|
131
|
+
"quality": "pnpm format && pnpm lint && pnpm knip",
|
|
132
|
+
"quality:fix": "pnpm format:fix && pnpm lint:fix && pnpm knip",
|
|
133
|
+
"release": "semantic-release"
|
|
134
|
+
}
|
|
135
|
+
}
|