Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 88eb37e

Browse files
committed
Improve playwright types setup
Add eslint-plugin-jest-playwright
1 parent 5f5b536 commit 88eb37e

7 files changed

+13704
-9
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ module.exports = {
88
'plugin:@typescript-eslint/recommended',
99
'prettier/@typescript-eslint',
1010
'plugin:prettier/recommended',
11+
'plugin:jest-playwright/recommended',
1112
],
1213
};

jest-playwright.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
// https://github.com/playwright-community/jest-playwright#start-a-server
2+
browsers: ['chromium', 'firefox', 'webkit'],
33
serverOptions: [
44
{
55
command: 'npm run bundle && npx serve -C -l 8000 dist/sdk',

jest.e2e.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ module.exports = {
55
transform: {
66
'^.+\\.ts$': 'ts-jest',
77
},
8-
testEnvironmentOptions: {
9-
'jest-playwright': {
10-
browsers: ['chromium', 'firefox', 'webkit'],
11-
},
12-
},
138
};

0 commit comments

Comments
 (0)