create-playwright
Advanced tools
Comparing version 0.1.7 to 1.16.0
// @ts-check | ||
const { devices } = require('@playwright/test'); | ||
const path = require('path') | ||
const path = require('path'); | ||
/** | ||
* @see https://playwright.dev/docs/test-configuration | ||
* @type{import('@playwright/test').PlaywrightTestConfig} | ||
* @type {import('@playwright/test').PlaywrightTestConfig} | ||
*/ | ||
@@ -14,4 +14,4 @@ const config = { | ||
testDir: path.join(__dirname, '{{testDir}}'), | ||
// If a test fails, retry it additional 2 times | ||
retries: 2, | ||
// If a test fails on CI, retry it additional 2 times | ||
retries: process.env.CI ? 2 : 0, | ||
// Artifacts folder where screenshots, videos, and traces are stored. | ||
@@ -30,3 +30,3 @@ outputDir: 'test-results/', | ||
// More information: https://playwright.dev/docs/trace-viewer | ||
trace: 'retry-with-trace', | ||
trace: 'on-first-retry', | ||
@@ -44,3 +44,2 @@ // All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context | ||
...devices['Desktop Chrome'], | ||
}, | ||
@@ -47,0 +46,0 @@ }, |
@@ -10,4 +10,4 @@ import { PlaywrightTestConfig, devices } from '@playwright/test'; | ||
testDir: path.join(__dirname, '{{testDir}}'), | ||
// If a test fails, retry it additional 2 times | ||
retries: 2, | ||
// If a test fails on CI, retry it additional 2 times | ||
retries: process.env.CI ? 2 : 0, | ||
// Artifacts folder where screenshots, videos, and traces are stored. | ||
@@ -26,3 +26,3 @@ outputDir: 'test-results/', | ||
// More information: https://playwright.dev/docs/trace-viewer | ||
trace: 'retry-with-trace', | ||
trace: 'on-first-retry', | ||
@@ -40,3 +40,2 @@ // All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context | ||
...devices['Desktop Chrome'], | ||
}, | ||
@@ -43,0 +42,0 @@ }, |
{ | ||
"name": "create-playwright", | ||
"version": "0.1.7", | ||
"version": "1.16.0", | ||
"description": "Getting started with writing end-to-end tests with Playwright.", | ||
"repository": "github:Microsoft/playwright", | ||
"homepage": "https://playwright.dev", | ||
"author": "Microsoft", | ||
"author": { | ||
"name": "Microsoft Corporation" | ||
}, | ||
"engines": { | ||
@@ -15,16 +17,6 @@ "node": ">=12" | ||
}, | ||
"license": "MIT", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"watch": "cd src && ncc build index.ts --watch --out ../lib && cd ..", | ||
"build": "cd src && ncc build index.ts --minify --out ../lib && cd ..", | ||
"test": "npx playwright test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.15.0-next-alpha-sep-10-2021", | ||
"@types/node": "^16.9.0", | ||
"@vercel/ncc": "^0.30.0", | ||
"enquirer": "^2.3.6", | ||
"typescript": "^4.4.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
109338
0
26
534
1
14
3