New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mands/nx-playwright

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mands/nx-playwright - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3-beta-1

4

package.json
{
"name": "@mands/nx-playwright",
"version": "0.2.2",
"version": "0.2.3-beta-1",
"license": "MIT",

@@ -20,2 +20,2 @@ "publishConfig": {

"types": "./index.d.ts"
}
}

@@ -14,4 +14,4 @@ # @mands/nx-playwright

```sh
yarn add --dev @mands/nx-playwright
yarn playwright install --with-deps
pnpm add --dev @mands/nx-playwright
pnpm playwright install --with-deps
```

@@ -21,6 +21,6 @@

> **Warning** If you have an existing e2e test app, please remove it first `yarn nx generate remove <APP-NAME>-e2e`
> **Warning** If you have an existing e2e test app, please remove it first `pnpm nx generate remove <APP-NAME>-e2e`
```sh
yarn nx generate @mands/nx-playwright:project <APP-NAME>-e2e --project <APP-NAME>
pnpm nx generate @mands/nx-playwright:project <APP-NAME>-e2e --project <APP-NAME>
```

@@ -31,3 +31,3 @@

```sh
yarn nx e2e <APP-NAME>-e2e
pnpm nx e2e <APP-NAME>-e2e
```

@@ -75,5 +75,5 @@

yarn create nx-workspace --name=test-nx --appName=test-app --style=@emotion/styled --preset=next --nxCloud=false --interactive=false
pnpm create nx-workspace --name=test-nx --appName=test-app --style=@emotion/styled --preset=next --nxCloud=false --interactive=false
pushd test-nx
yarn nx generate remove test-app-e2e
pnpm nx generate remove test-app-e2e
git commit -am "Remove test-app-e2e"

@@ -80,0 +80,0 @@ popd

@@ -7,3 +7,3 @@ "use strict";

const schema_json_1 = tslib_1.__importDefault(require("./schema.json"));
function getFlags({ debug, headed, passWithNoTests, browser, testProject, reporter, timeout, grep, grepInvert, }) {
function getFlags({ debug, headed, passWithNoTests, browser, testProject, reporter, timeout, grep, grepInvert, updateSnapshots, }) {
const headedOption = headed === true ? '--headed' : '';

@@ -18,2 +18,3 @@ const passWithNoTestsOption = passWithNoTests === true ? '--pass-with-no-tests' : '';

const debugOption = debug !== undefined && debug ? '--debug' : '';
const updateSnapshotsOption = updateSnapshots !== undefined && updateSnapshots ? '--update-snapshots' : '';
return [

@@ -29,2 +30,3 @@ headedOption,

debugOption,
updateSnapshotsOption,
];

@@ -31,0 +33,0 @@ }

@@ -109,2 +109,9 @@ import { exec } from 'child_process';

],
[
'--update-snapshots',
{
updateSnapshots: true,
e2eFolder: 'folder',
},
],
])(`runs playwright with options: %s`, async (expected, options) => {

@@ -111,0 +118,0 @@ execMock.mockImplementation((_command, _options, callback) => {

@@ -22,2 +22,3 @@ import type { PackageRunner } from '../../types';

debug?: boolean;
updateSnapshots?: boolean;
}

@@ -51,4 +51,8 @@ {

"description": "whether to open the Playwright inspector"
},
"updateSnapshots": {
"type": "boolean",
"description": "whether to update snapshots with actual results instead of comparing them"
}
}
}

@@ -28,3 +28,3 @@ import { addProjectConfiguration, readJson, updateWorkspaceConfiguration } from '@nrwl/devkit';

devServerTarget: 'test-project:serve',
packageRunner: 'yarn',
packageRunner: 'pnpm',
},

@@ -31,0 +31,0 @@ configurations: {

@@ -42,3 +42,3 @@ {

"description": "package runner to use to run playwright",
"default": "yarn"
"default": "pnpm"
}

@@ -45,0 +45,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc