@sit-onyx/playwright-utils 1.0.0-beta.5 → 1.0.0-dev-20250912111044

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.
@@ -25,4 +25,4 @@ export declare const createEmitSpy: <C extends Component, Key extends keyof Emit
25
25
  */
26
26
  export declare const expectEmit: <Handler extends {
27
27
  [EMIT_SPY_SYMBOL]: unknown[][];
28
- }>(emitSpy: Handler, n: number, matches: unknown[]) => unknown[];
28
+ }>(emitSpy: Handler, n: number, matches?: unknown[]) => unknown[] | undefined;
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const b = Symbol("EMIT_SPY_SYMBOL"), O = () => {
10
10
  const r = t[b];
11
11
  g(r).toHaveLength(n);
12
12
  const a = r[n - 1];
13
- return g(a).toMatchObject(e), a;
13
+ return e && g(a).toMatchObject(e), a;
14
14
  }, l = (t) => t.replace(/\W/g, "-"), k = (t) => {
15
15
  const n = () => {
16
16
  const e = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/playwright-utils",
3
3
  "description": "Utilities for Vue component testing with Playwright",
4
- "version": "1.0.0-beta.5",
4
+ "version": "1.0.0-dev-20250912111044",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
@@ -34,9 +34,9 @@
34
34
  "vue-component-type-helpers": ">= 3"
35
35
  },
36
36
  "devDependencies": {
37
- "typescript": "5.8.3",
38
- "vite": "7.0.5",
39
- "@sit-onyx/shared": "1.0.0-beta.4"
37
+ "typescript": "5.9.2",
38
+ "vite": "7.1.5",
39
+ "@sit-onyx/shared": "0.1.0-dev-20250912111044"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "vite build && vue-tsc --emitDeclarationOnly"