@argos-ci/playwright 1.5.0 → 1.6.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.
@@ -3,7 +3,8 @@ import { FullConfig, FullResult, Reporter, Suite, TestCase, TestResult } from "@
3
3
  import { UploadParameters } from "@argos-ci/core";
4
4
  type ArgosReporterOptions = Omit<UploadParameters, "files" | "root"> & {
5
5
  /**
6
- * If `true`, the report will be uploaded to Argos.
6
+ * Upload the report to Argos.
7
+ * @default true
7
8
  */
8
9
  uploadToArgos?: boolean;
9
10
  };
package/dist/reporter.mjs CHANGED
@@ -116,7 +116,7 @@ const getParallelFromConfig = (config)=>{
116
116
  if (config.shard.total === 1) return null;
117
117
  const argosConfig = readConfig();
118
118
  if (!argosConfig.parallelNonce) {
119
- throw new Error("Playwright shard mode detected. Please specify ARGOS_PARALLEL_NONCE env variable. Read https://argos-ci.com/docs/parallel-testing");
119
+ throw new Error("Playwright shard mode detected. Please specify ARGOS_PARALLEL_NONCE env variable. Read /parallel-testing");
120
120
  }
121
121
  return {
122
122
  total: config.shard.total,
@@ -130,7 +130,7 @@ class ArgosReporter {
130
130
  uploadToArgos;
131
131
  constructor(config){
132
132
  this.config = config;
133
- this.uploadToArgos = config.uploadToArgos ?? false;
133
+ this.uploadToArgos = config.uploadToArgos ?? true;
134
134
  }
135
135
  async writeFile(path, body) {
136
136
  const dir = dirname(path);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/playwright",
3
3
  "description": "Visual testing solution to avoid visual regression. Playwright commands and utilities for Argos visual testing.",
4
- "version": "1.5.0",
4
+ "version": "1.6.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -26,14 +26,14 @@
26
26
  "types": "./dist/index.d.ts",
27
27
  "exports": {
28
28
  ".": {
29
+ "types": "./dist/index.d.ts",
29
30
  "import": "./dist/index.mjs",
30
31
  "require": "./dist/index.cjs",
31
- "types": "./dist/index.d.ts",
32
32
  "default": "./dist/index.mjs"
33
33
  },
34
34
  "./reporter": {
35
- "import": "./dist/reporter.mjs",
36
35
  "types": "./dist/reporter.d.ts",
36
+ "import": "./dist/reporter.mjs",
37
37
  "default": "./dist/reporter.mjs"
38
38
  },
39
39
  "./package.json": "./package.json"
@@ -42,13 +42,13 @@
42
42
  "node": ">=16.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@argos-ci/browser": "1.2.2",
46
- "@argos-ci/core": "1.3.0",
47
- "@argos-ci/util": "1.1.0",
45
+ "@argos-ci/browser": "1.3.0",
46
+ "@argos-ci/core": "1.4.0",
47
+ "@argos-ci/util": "1.2.0",
48
48
  "chalk": "^5.3.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@argos-ci/cli": "1.0.4",
51
+ "@argos-ci/cli": "1.0.5",
52
52
  "@argos-ci/playwright": "workspace:.",
53
53
  "@playwright/test": "^1.38.1",
54
54
  "@types/node": "^16.0.0"
@@ -57,7 +57,7 @@
57
57
  "prebuild": "rm -rf dist",
58
58
  "build": "rollup -c",
59
59
  "test": "pnpm exec playwright test",
60
- "e2e": "pnpm run test"
60
+ "e2e": "UPLOAD_TO_ARGOS=true pnpm run test"
61
61
  },
62
- "gitHead": "dd3031f89cc03084a65b2b956783441d3dd75d9c"
62
+ "gitHead": "ac02d37ca89f73359fba70cfe9b579396c3260d8"
63
63
  }