@cerios/playwright-expectly-core 0.0.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/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/matchers/matcher-state-utils.ts
3
+ const withMatcherState = (matchers) => matchers;
4
+ //#endregion
5
+ exports.withMatcherState = withMatcherState;
6
+
7
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/matchers/matcher-state-utils.ts"],"sourcesContent":["import type { ExpectMatcherState } from \"@playwright/test\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Generic constraint requires `any` for variadic matcher function signatures\nexport const withMatcherState = <T extends Record<string, (...args: any[]) => any>>(\n\tmatchers: T & ThisType<ExpectMatcherState>,\n): T => matchers;\n"],"mappings":";;AAGA,MAAa,oBACZ,aACO"}
@@ -0,0 +1,19 @@
1
+ import { ExpectMatcherState } from "@playwright/test";
2
+
3
+ //#region src/matchers/matcher-state-utils.d.ts
4
+ declare const withMatcherState: <T extends Record<string, (...args: any[]) => any>>(matchers: T & ThisType<ExpectMatcherState>) => T;
5
+ //#endregion
6
+ //#region src/types/poll-options.d.ts
7
+ type PollOptions = {
8
+ /**
9
+ * Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
10
+ */
11
+ timeout?: number;
12
+ /**
13
+ * Custom polling intervals in milliseconds. If not provided, Playwright's default intervals are used.
14
+ */
15
+ intervals?: number[];
16
+ };
17
+ //#endregion
18
+ export { type PollOptions, withMatcherState };
19
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1,19 @@
1
+ import { ExpectMatcherState } from "@playwright/test";
2
+
3
+ //#region src/matchers/matcher-state-utils.d.ts
4
+ declare const withMatcherState: <T extends Record<string, (...args: any[]) => any>>(matchers: T & ThisType<ExpectMatcherState>) => T;
5
+ //#endregion
6
+ //#region src/types/poll-options.d.ts
7
+ type PollOptions = {
8
+ /**
9
+ * Time to retry the assertion for in milliseconds. Defaults to `timeout` in `TestConfig.expect`.
10
+ */
11
+ timeout?: number;
12
+ /**
13
+ * Custom polling intervals in milliseconds. If not provided, Playwright's default intervals are used.
14
+ */
15
+ intervals?: number[];
16
+ };
17
+ //#endregion
18
+ export { type PollOptions, withMatcherState };
19
+ //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ //#region src/matchers/matcher-state-utils.ts
2
+ const withMatcherState = (matchers) => matchers;
3
+ //#endregion
4
+ export { withMatcherState };
5
+
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/matchers/matcher-state-utils.ts"],"sourcesContent":["import type { ExpectMatcherState } from \"@playwright/test\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Generic constraint requires `any` for variadic matcher function signatures\nexport const withMatcherState = <T extends Record<string, (...args: any[]) => any>>(\n\tmatchers: T & ThisType<ExpectMatcherState>,\n): T => matchers;\n"],"mappings":";AAGA,MAAa,oBACZ,aACO"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@cerios/playwright-expectly-core",
3
+ "version": "0.0.0",
4
+ "description": "Shared utilities for @cerios/playwright-expectly packages.",
5
+ "homepage": "https://github.com/CeriosTesting/playwright-expectly#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/CeriosTesting/playwright-expectly/issues"
8
+ },
9
+ "license": "MIT",
10
+ "author": "Ronald Veth - Cerios",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/CeriosTesting/playwright-expectly.git",
14
+ "directory": "packages/playwright-expectly-core"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "type": "commonjs",
20
+ "sideEffects": false,
21
+ "main": "./dist/index.cjs",
22
+ "module": "./dist/index.mjs",
23
+ "types": "./dist/index.d.cts",
24
+ "exports": {
25
+ ".": {
26
+ "import": {
27
+ "types": "./dist/index.d.mts",
28
+ "default": "./dist/index.mjs"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.d.cts",
32
+ "default": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "scripts": {
38
+ "build": "tsdown",
39
+ "test": "echo \"No tests for core package\""
40
+ },
41
+ "devDependencies": {
42
+ "@playwright/test": "^1.60.0",
43
+ "@types/node": "^25.9.3",
44
+ "tsdown": "^0.22.2",
45
+ "typescript": "^6.0.3"
46
+ },
47
+ "peerDependencies": {
48
+ "@playwright/test": ">=1.40.0"
49
+ }
50
+ }