Skip to content

Commit 79aeaa9

Browse files
committed
Move playwright config into jest.config.js
1 parent 4cbfc0a commit 79aeaa9

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

jest.config.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ const sharedConfig = {
1515
restoreMocks: true,
1616
};
1717

18-
// Jest-Playwrigth Config
19-
process.env.JEST_PLAYWRIGHT_CONFIG = './test/config/jest-playwright.config.js';
20-
2118
module.exports = {
2219
// Adding globals to config root for easier importing into .eslint.js, but
2320
// as of Jest 26.4.2 these globals need to be added to each project config
@@ -48,6 +45,20 @@ module.exports = {
4845
setupFilesAfterEnv: [
4946
'<rootDir>/test/config/jest-playwright.setup-tests.js',
5047
],
48+
testEnvironmentOptions: {
49+
'jest-playwright': {
50+
// prettier-ignore
51+
browsers: [
52+
'chromium',
53+
'firefox',
54+
'webkit',
55+
],
56+
launchOptions: {
57+
// headless: false,
58+
// devtools: true,
59+
},
60+
},
61+
},
5162
testMatch: ['<rootDir>/test/e2e/*.test.js'],
5263
},
5364
],

test/config/jest-playwright.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)