@baseline-ui/test-utils 3.1.0 → 3.2.0
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/client/index.d.mts +1 -1
- package/client/index.d.ts +1 -1
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/package.json +2 -2
- package/sbom.json +6 -6
package/client/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { StylingProps, I18nProviderProps, ThemeProviderProps } from '@baseline-ui/core';
|
|
3
3
|
import { FrameComponentProps } from 'react-frame-component';
|
|
4
4
|
|
|
5
|
-
declare const IFrame: React.ForwardRefExoticComponent<IFrameProps & React.RefAttributes<HTMLIFrameElement>>;
|
|
5
|
+
declare const IFrame: React.ForwardRefExoticComponent<Omit<IFrameProps, "ref"> & React.RefAttributes<HTMLIFrameElement>>;
|
|
6
6
|
interface IFrameProps extends FrameComponentProps, Omit<React.IframeHTMLAttributes<HTMLIFrameElement>, keyof FrameComponentProps>, StylingProps {
|
|
7
7
|
}
|
|
8
8
|
declare const ShadowRoot: React.ForwardRefExoticComponent<ShadowRootProps & React.RefAttributes<HTMLDivElement>>;
|
package/client/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { StylingProps, I18nProviderProps, ThemeProviderProps } from '@baseline-ui/core';
|
|
3
3
|
import { FrameComponentProps } from 'react-frame-component';
|
|
4
4
|
|
|
5
|
-
declare const IFrame: React.ForwardRefExoticComponent<IFrameProps & React.RefAttributes<HTMLIFrameElement>>;
|
|
5
|
+
declare const IFrame: React.ForwardRefExoticComponent<Omit<IFrameProps, "ref"> & React.RefAttributes<HTMLIFrameElement>>;
|
|
6
6
|
interface IFrameProps extends FrameComponentProps, Omit<React.IframeHTMLAttributes<HTMLIFrameElement>, keyof FrameComponentProps>, StylingProps {
|
|
7
7
|
}
|
|
8
8
|
declare const ShadowRoot: React.ForwardRefExoticComponent<ShadowRootProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as playwright_test from 'playwright/test';
|
|
2
2
|
import { Page, Locator, FrameLocator } from '@playwright/test';
|
|
3
3
|
import { SinonSpy } from 'sinon';
|
|
4
4
|
|
|
@@ -29,57 +29,57 @@ interface ToBeAccessibleOptions {
|
|
|
29
29
|
attachmentName?: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
declare const expect:
|
|
33
|
-
toBeWithinDelta(this:
|
|
32
|
+
declare const expect: playwright_test.Expect<{
|
|
33
|
+
toBeWithinDelta(this: playwright_test.ExpectMatcherState, received: number, expected: number, delta: number): {
|
|
34
34
|
message: () => string;
|
|
35
35
|
pass: true;
|
|
36
36
|
} | {
|
|
37
37
|
message: () => string;
|
|
38
38
|
pass: false;
|
|
39
39
|
};
|
|
40
|
-
toBeCalledOnce(this:
|
|
40
|
+
toBeCalledOnce(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
41
41
|
message: () => string;
|
|
42
42
|
pass: true;
|
|
43
43
|
} | {
|
|
44
44
|
message: () => string;
|
|
45
45
|
pass: false;
|
|
46
46
|
}>;
|
|
47
|
-
toBeCalledTwice(this:
|
|
47
|
+
toBeCalledTwice(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
48
48
|
message: () => string;
|
|
49
49
|
pass: true;
|
|
50
50
|
} | {
|
|
51
51
|
message: () => string;
|
|
52
52
|
pass: false;
|
|
53
53
|
}>;
|
|
54
|
-
toBeCalledThrice(this:
|
|
54
|
+
toBeCalledThrice(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
55
55
|
message: () => string;
|
|
56
56
|
pass: true;
|
|
57
57
|
} | {
|
|
58
58
|
message: () => string;
|
|
59
59
|
pass: false;
|
|
60
60
|
}>;
|
|
61
|
-
toBeCalledWith(this:
|
|
61
|
+
toBeCalledWith(this: playwright_test.ExpectMatcherState, fn: SinonSpy, ...args: unknown[]): Promise<{
|
|
62
62
|
message: () => string;
|
|
63
63
|
pass: true;
|
|
64
64
|
} | {
|
|
65
65
|
message: () => string;
|
|
66
66
|
pass: false;
|
|
67
67
|
}>;
|
|
68
|
-
toBeCalledWithExactly(this:
|
|
68
|
+
toBeCalledWithExactly(this: playwright_test.ExpectMatcherState, fn: SinonSpy, ...args: unknown[]): Promise<{
|
|
69
69
|
message: () => string;
|
|
70
70
|
pass: true;
|
|
71
71
|
} | {
|
|
72
72
|
message: () => string;
|
|
73
73
|
pass: false;
|
|
74
74
|
}>;
|
|
75
|
-
toBeCalled(this:
|
|
75
|
+
toBeCalled(this: playwright_test.ExpectMatcherState, fn: SinonSpy): {
|
|
76
76
|
message: () => string;
|
|
77
77
|
pass: true;
|
|
78
78
|
} | {
|
|
79
79
|
message: () => string;
|
|
80
80
|
pass: false;
|
|
81
81
|
};
|
|
82
|
-
toBeCalledTimes(this:
|
|
82
|
+
toBeCalledTimes(this: playwright_test.ExpectMatcherState, fn: SinonSpy, times: number): Promise<{
|
|
83
83
|
message: () => string;
|
|
84
84
|
pass: true;
|
|
85
85
|
} | {
|
|
@@ -95,7 +95,7 @@ declare const expect: _playwright_test.Expect<{
|
|
|
95
95
|
message: () => string;
|
|
96
96
|
pass: false;
|
|
97
97
|
}>;
|
|
98
|
-
toMatchClassTree(this:
|
|
98
|
+
toMatchClassTree(this: playwright_test.ExpectMatcherState, locator: Locator, snapshotName?: string, options?: {
|
|
99
99
|
prefix?: string | string[];
|
|
100
100
|
ignoreHashed?: boolean;
|
|
101
101
|
}): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as playwright_test from 'playwright/test';
|
|
2
2
|
import { Page, Locator, FrameLocator } from '@playwright/test';
|
|
3
3
|
import { SinonSpy } from 'sinon';
|
|
4
4
|
|
|
@@ -29,57 +29,57 @@ interface ToBeAccessibleOptions {
|
|
|
29
29
|
attachmentName?: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
declare const expect:
|
|
33
|
-
toBeWithinDelta(this:
|
|
32
|
+
declare const expect: playwright_test.Expect<{
|
|
33
|
+
toBeWithinDelta(this: playwright_test.ExpectMatcherState, received: number, expected: number, delta: number): {
|
|
34
34
|
message: () => string;
|
|
35
35
|
pass: true;
|
|
36
36
|
} | {
|
|
37
37
|
message: () => string;
|
|
38
38
|
pass: false;
|
|
39
39
|
};
|
|
40
|
-
toBeCalledOnce(this:
|
|
40
|
+
toBeCalledOnce(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
41
41
|
message: () => string;
|
|
42
42
|
pass: true;
|
|
43
43
|
} | {
|
|
44
44
|
message: () => string;
|
|
45
45
|
pass: false;
|
|
46
46
|
}>;
|
|
47
|
-
toBeCalledTwice(this:
|
|
47
|
+
toBeCalledTwice(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
48
48
|
message: () => string;
|
|
49
49
|
pass: true;
|
|
50
50
|
} | {
|
|
51
51
|
message: () => string;
|
|
52
52
|
pass: false;
|
|
53
53
|
}>;
|
|
54
|
-
toBeCalledThrice(this:
|
|
54
|
+
toBeCalledThrice(this: playwright_test.ExpectMatcherState, fn: SinonSpy): Promise<{
|
|
55
55
|
message: () => string;
|
|
56
56
|
pass: true;
|
|
57
57
|
} | {
|
|
58
58
|
message: () => string;
|
|
59
59
|
pass: false;
|
|
60
60
|
}>;
|
|
61
|
-
toBeCalledWith(this:
|
|
61
|
+
toBeCalledWith(this: playwright_test.ExpectMatcherState, fn: SinonSpy, ...args: unknown[]): Promise<{
|
|
62
62
|
message: () => string;
|
|
63
63
|
pass: true;
|
|
64
64
|
} | {
|
|
65
65
|
message: () => string;
|
|
66
66
|
pass: false;
|
|
67
67
|
}>;
|
|
68
|
-
toBeCalledWithExactly(this:
|
|
68
|
+
toBeCalledWithExactly(this: playwright_test.ExpectMatcherState, fn: SinonSpy, ...args: unknown[]): Promise<{
|
|
69
69
|
message: () => string;
|
|
70
70
|
pass: true;
|
|
71
71
|
} | {
|
|
72
72
|
message: () => string;
|
|
73
73
|
pass: false;
|
|
74
74
|
}>;
|
|
75
|
-
toBeCalled(this:
|
|
75
|
+
toBeCalled(this: playwright_test.ExpectMatcherState, fn: SinonSpy): {
|
|
76
76
|
message: () => string;
|
|
77
77
|
pass: true;
|
|
78
78
|
} | {
|
|
79
79
|
message: () => string;
|
|
80
80
|
pass: false;
|
|
81
81
|
};
|
|
82
|
-
toBeCalledTimes(this:
|
|
82
|
+
toBeCalledTimes(this: playwright_test.ExpectMatcherState, fn: SinonSpy, times: number): Promise<{
|
|
83
83
|
message: () => string;
|
|
84
84
|
pass: true;
|
|
85
85
|
} | {
|
|
@@ -95,7 +95,7 @@ declare const expect: _playwright_test.Expect<{
|
|
|
95
95
|
message: () => string;
|
|
96
96
|
pass: false;
|
|
97
97
|
}>;
|
|
98
|
-
toMatchClassTree(this:
|
|
98
|
+
toMatchClassTree(this: playwright_test.ExpectMatcherState, locator: Locator, snapshotName?: string, options?: {
|
|
99
99
|
prefix?: string | string[];
|
|
100
100
|
ignoreHashed?: boolean;
|
|
101
101
|
}): Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseline-ui/test-utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A collection of test utilities for Baseline UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"axe-core": "^4.11.4",
|
|
54
54
|
"react-frame-component": "^5.3.2",
|
|
55
|
-
"@baseline-ui/core": "3.
|
|
55
|
+
"@baseline-ui/core": "3.2.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsup",
|
package/sbom.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.6",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:83528e6d-3bf5-41b7-b1d7-f714ee8d49e8",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-09-
|
|
8
|
+
"timestamp": "2026-09-24T06:10:26.534Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "pre-build"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"component": {
|
|
24
24
|
"type": "library",
|
|
25
25
|
"name": "@baseline-ui/test-utils",
|
|
26
|
-
"version": "3.
|
|
27
|
-
"purl": "pkg:npm/@baseline-ui/test-utils@3.
|
|
28
|
-
"bom-ref": "pkg:npm/@baseline-ui/test-utils@3.
|
|
26
|
+
"version": "3.2.0",
|
|
27
|
+
"purl": "pkg:npm/@baseline-ui/test-utils@3.2.0",
|
|
28
|
+
"bom-ref": "pkg:npm/@baseline-ui/test-utils@3.2.0",
|
|
29
29
|
"licenses": [
|
|
30
30
|
{
|
|
31
31
|
"license": {
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
],
|
|
501
501
|
"dependencies": [
|
|
502
502
|
{
|
|
503
|
-
"ref": "pkg:npm/@baseline-ui/test-utils@3.
|
|
503
|
+
"ref": "pkg:npm/@baseline-ui/test-utils@3.2.0",
|
|
504
504
|
"dependsOn": [
|
|
505
505
|
"pkg:npm/%40neondatabase/serverless@1.1.0",
|
|
506
506
|
"pkg:npm/%40playwright/test@1.60.0",
|