Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1 to 0.2.2

2

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

@@ -5,0 +5,0 @@ "publishConfig": {

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

const schema_json_1 = tslib_1.__importDefault(require("./schema.json"));
function getFlags(options) {
var _a, _b, _c;
const headedOption = options.headed === true ? '--headed' : '';
const passWithNoTestsOption = options.passWithNoTests === true ? '--pass-with-no-tests' : '';
const browserOption = ((_a = options.browser) === null || _a === void 0 ? void 0 : _a.length) ? `--browser=${options.browser}` : '';
const projectOption = ((_b = options.testProject) === null || _b === void 0 ? void 0 : _b.length) ? `--project=${options.testProject}` : '';
const reporterOption = ((_c = options.reporter) === null || _c === void 0 ? void 0 : _c.length) ? `--reporter=${options.reporter}` : '';
const timeoutOption = options.timeout !== undefined ? `--timeout=${options.timeout}` : '';
const grepOption = options.grep !== undefined ? `--grep=${options.grep}` : '';
const grepInvertOption = options.grepInvert !== undefined ? `--grep-invert=${options.grepInvert}` : '';
function getFlags({ debug, headed, passWithNoTests, browser, testProject, reporter, timeout, grep, grepInvert, }) {
const headedOption = headed === true ? '--headed' : '';
const passWithNoTestsOption = passWithNoTests === true ? '--pass-with-no-tests' : '';
const browserOption = (browser === null || browser === void 0 ? void 0 : browser.length) ? `--browser=${browser}` : '';
const projectOption = (testProject === null || testProject === void 0 ? void 0 : testProject.length) ? `--project=${testProject}` : '';
const reporterOption = (reporter === null || reporter === void 0 ? void 0 : reporter.length) ? `--reporter=${reporter}` : '';
const timeoutOption = timeout !== undefined ? `--timeout=${timeout}` : '';
const grepOption = grep !== undefined ? `--grep=${grep}` : '';
const grepInvertOption = grepInvert !== undefined ? `--grep-invert=${grepInvert}` : '';
const debugOption = debug !== undefined && debug ? '--debug' : '';
return [

@@ -27,2 +27,3 @@ headedOption,

passWithNoTestsOption,
debugOption,
];

@@ -29,0 +30,0 @@ }

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

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

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

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

passWithNoTests?: boolean;
debug?: boolean;
}

@@ -47,4 +47,8 @@ {

"description": "timeout for tests"
},
"debug": {
"type": "boolean",
"description": "whether to open the Playwright inspector"
}
}
}

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