-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Playwright] Add Playwright Support (#125)
Co-authored-by: Logan Graham <logan.graham@saucelabs.com>
- Loading branch information
1 parent
4f358f1
commit 7b1c3cc
Showing
23 changed files
with
3,985 additions
and
2,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@saucelabs/visual-playwright": minor | ||
"@saucelabs/visual": patch | ||
--- | ||
|
||
Add playwright support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module.exports = { | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
root: true, | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
ignorePatterns: ['.eslintrc.js', 'jest.config.js'], | ||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
|
||
// Allow unused vars that start with _ | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^_" | ||
} | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.work | ||
build/ | ||
coverage/ | ||
.parent/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"name": "@saucelabs/visual-playwright", | ||
"description": "Playwright Plugin / Bootstrapper for Sauce Labs Visual", | ||
"version": "0.0.0", | ||
"main": "build/index.cjs", | ||
"module": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"license": "MIT", | ||
"files": [ | ||
"build" | ||
], | ||
"type": "module", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"keywords": [ | ||
"saucelabs", | ||
"visual", | ||
"playwright" | ||
], | ||
"exports": { | ||
".": { | ||
"require": "./build/index.cjs", | ||
"import": "./build/index.js", | ||
"types": "./build/index.d.ts" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"build": "tsup-node", | ||
"watch": "tsc-watch --declaration -p .", | ||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"" | ||
}, | ||
"dependencies": { | ||
"@playwright/test": "^1.42.1", | ||
"@saucelabs/visual": "^0.7.0", | ||
"exponential-backoff": "^3.1.1" | ||
}, | ||
"tsup": { | ||
"entry": [ | ||
"./src/index.ts" | ||
], | ||
"dts": true, | ||
"outDir": "./build", | ||
"format": [ | ||
"cjs", | ||
"esm" | ||
], | ||
"external": [ | ||
"@saucelabs/visual-playwright" | ||
], | ||
"noExternal": [] | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^28.0.0 || ^29.0.0", | ||
"@storybook/types": "^8.0.2", | ||
"@tsconfig/node18": "^2.0.0", | ||
"@types/node": "^18.13.0", | ||
"@types/node-fetch": "^2.6.4", | ||
"@types/selenium-webdriver": "^4.1.15", | ||
"@typescript-eslint/eslint-plugin": "^5.59.1", | ||
"@typescript-eslint/parser": "^5.59.1", | ||
"eslint": "^8.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"jest": "^29.5.0", | ||
"jest-junit-reporter": "^1.1.0", | ||
"prettier": "^2.8.8", | ||
"ts-jest": "^29.1.1", | ||
"ts-jest-resolver": "^2.0.1", | ||
"ts-node": "^10.9.1", | ||
"tsc-watch": "^6.0.4", | ||
"tsup": "^7.2.0", | ||
"typescript": "^5.5.4" | ||
} | ||
} |
Oops, something went wrong.