@nx/playwright 22.2.0 → 22.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "22.2.0",
3
+ "version": "22.2.1",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -34,14 +34,14 @@
34
34
  "directory": "packages/playwright"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "22.2.0",
38
- "@nx/eslint": "22.2.0",
39
- "@nx/js": "22.2.0",
37
+ "@nx/devkit": "22.2.1",
38
+ "@nx/eslint": "22.2.1",
39
+ "@nx/js": "22.2.1",
40
40
  "tslib": "^2.3.0",
41
41
  "minimatch": "9.0.3"
42
42
  },
43
43
  "devDependencies": {
44
- "nx": "22.2.0"
44
+ "nx": "22.2.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@playwright/test": "^1.36.0"
@@ -4,6 +4,11 @@ export interface NxPlaywrightOptions {
4
4
  * @default './src'
5
5
  **/
6
6
  testDir?: string;
7
+ /**
8
+ * Open the html report after the test run.
9
+ * @default 'on-failure'
10
+ */
11
+ openHtmlReport?: 'always' | 'never' | 'on-failure';
7
12
  /**
8
13
  * Whether to generate blob reports. Useful when running atomized tasks in CI
9
14
  * and you want to merge the reports.
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/utils/preset.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC;;;QAGI;IACJ,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mBAAmB,2DAkD9B"}
1
+ {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/utils/preset.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC;;;QAGI;IACJ,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;IACnD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mBAAmB,2DAmD9B"}
@@ -45,6 +45,7 @@ function nxE2EPreset(pathToConfig, options) {
45
45
  outputFolder: isTsSolutionSetup
46
46
  ? 'test-output/playwright/report'
47
47
  : (0, node_path_1.join)(offset, 'dist', '.playwright', projectPath, 'playwright-report'),
48
+ open: options.openHtmlReport,
48
49
  },
49
50
  ]);
50
51
  const shouldGenerateBlobReports = options?.generateBlobReports ?? !!process.env['CI'];