Skip to content

Commit feae50c

Browse files
authored
Test refactor, making them faster (#574)
* Test refactor * Remove unused globals * Remove console.log, fix test timeout
1 parent 31ad0bd commit feae50c

36 files changed

+3591
-3500
lines changed

jest-playwright.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module.exports = {
2-
server: {
2+
serverOptions: {
33
command: 'node test/server.js',
44
port: 30001,
55
launchTimeout: 10000,
66
},
7+
launchOptions: {
8+
headless: true,
9+
slowMo: 250,
10+
},
11+
browsers: ["chromium"],
712
}

jest.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ module.exports = {
1010
preset: "jest-playwright-preset",
1111
globals: {
1212
PATH: "http://localhost:30001/",
13-
BROWSER: ["chromium"],
14-
ISHEADLESS: true
1513
},
1614
testMatch: ["**/test/e2e/**/*.test.js"]
1715
}

0 commit comments

Comments
 (0)