@testspectra/cli 1.3.0 → 1.3.2

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.
@@ -150,6 +150,16 @@ export interface WebConfig {
150
150
  * @default "suite"
151
151
  */
152
152
  isolation?: 'suite' | 'testcase';
153
+ /**
154
+ * The page size (CSS pixels) every test case starts at, headed or headless. Without it a headless
155
+ * Chrome lays the page out at its small default window, where a responsive app shows its
156
+ * tablet layout. A case that calls `Spectra.setViewport()` does not leak its size into the next.
157
+ * @default { width: 1280, height: 720 }
158
+ */
159
+ viewport?: {
160
+ width: number;
161
+ height: number;
162
+ };
153
163
  /**
154
164
  * Delay between consecutive actions and commands in milliseconds (slow motion).
155
165
  * @default 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "TestSpectra Cross-Platform Test Runner CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,11 +25,11 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@clack/prompts": "^1.7.0",
28
- "@testspectra/matchers": "^1.3.0",
29
- "@testspectra/react": "^1.3.0",
30
- "@testspectra/react-native": "^1.3.0",
31
- "@testspectra/reporter": "^1.3.0",
32
- "@testspectra/skills": "^1.3.0",
28
+ "@testspectra/matchers": "^1.3.2",
29
+ "@testspectra/react": "^1.3.2",
30
+ "@testspectra/react-native": "^1.3.2",
31
+ "@testspectra/reporter": "^1.3.2",
32
+ "@testspectra/skills": "^1.3.2",
33
33
  "chalk": "^5.3.0",
34
34
  "commander": "^12.1.0",
35
35
  "cross-spawn": "^7.0.6",
@@ -40,9 +40,9 @@
40
40
  "zod": "^3.23.8"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@testspectra/cli-darwin-arm64": "1.3.0",
44
- "@testspectra/cli-linux-x64": "1.3.0",
45
- "@testspectra/cli-win32-x64": "1.3.0"
43
+ "@testspectra/cli-darwin-arm64": "1.3.2",
44
+ "@testspectra/cli-linux-x64": "1.3.2",
45
+ "@testspectra/cli-win32-x64": "1.3.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/cross-spawn": "^6.0.6",
@@ -17,9 +17,9 @@
17
17
  "postinstall": "spectra sync-types"
18
18
  },
19
19
  "devDependencies": {
20
- "@testspectra/cli": "^1.3.0",
21
- "@testspectra/matchers": "^1.3.0",
22
- "@testspectra/plugin-demo": "^1.3.0",
20
+ "@testspectra/cli": "^1.3.2",
21
+ "@testspectra/matchers": "^1.3.2",
22
+ "@testspectra/plugin-demo": "^1.3.2",
23
23
  "@types/node": "^20.14.0",
24
24
  "@wdio/cli": "^9.2.8",
25
25
  "@wdio/local-runner": "^9.2.8",
@@ -12,8 +12,8 @@
12
12
  "postinstall": "spectra sync-types"
13
13
  },
14
14
  "devDependencies": {
15
- "@testspectra/cli": "^1.3.0",
16
- "@testspectra/matchers": "^1.3.0",
15
+ "@testspectra/cli": "^1.3.2",
16
+ "@testspectra/matchers": "^1.3.2",
17
17
  "@types/node": "^20.14.0",
18
18
  "@wdio/cli": "^9.2.8",
19
19
  "@wdio/local-runner": "^9.2.8",
@@ -14,9 +14,9 @@
14
14
  "postinstall": "spectra sync-types"
15
15
  },
16
16
  "devDependencies": {
17
- "@testspectra/cli": "^1.3.0",
18
- "@testspectra/matchers": "^1.3.0",
19
- "@testspectra/react": "^1.3.0",
17
+ "@testspectra/cli": "^1.3.2",
18
+ "@testspectra/matchers": "^1.3.2",
19
+ "@testspectra/react": "^1.3.2",
20
20
  "@types/node": "^20.14.0",
21
21
  "@types/react": "^18.3.3",
22
22
  "@types/react-dom": "^18.3.0",
@@ -12,9 +12,9 @@
12
12
  "postinstall": "spectra sync-types"
13
13
  },
14
14
  "devDependencies": {
15
- "@testspectra/cli": "^1.3.0",
16
- "@testspectra/matchers": "^1.3.0",
17
- "@testspectra/react-native": "^1.3.0",
15
+ "@testspectra/cli": "^1.3.2",
16
+ "@testspectra/matchers": "^1.3.2",
17
+ "@testspectra/react-native": "^1.3.2",
18
18
  "@types/node": "^20.14.0",
19
19
  "@types/react": "^18.3.12",
20
20
  "@types/react-native": "^0.73.0",