-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Attempt to fix tests Test: Investigate error message Test: Attempt to fix tests Chore: Cleanup code Test: Attempt to fix tests Test: Attempt to fix tests
- Loading branch information
1 parent
df813fb
commit 7f4d5a0
Showing
5 changed files
with
51 additions
and
3 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,33 @@ | ||
const PuppeteerEnvironment = require("jest-environment-puppeteer"); | ||
const util = require("util"); | ||
|
||
class DebugEnv extends PuppeteerEnvironment { | ||
async handleTestEvent(event, state) { | ||
const ignoredEvents = [ | ||
"setup", | ||
"add_hook", | ||
"start_describe_definition", | ||
"add_test", | ||
"finish_describe_definition", | ||
"run_start", | ||
"run_describe_start", | ||
"test_start", | ||
"hook_start", | ||
"hook_success", | ||
"test_fn_start", | ||
"test_fn_success", | ||
"test_done", | ||
"run_describe_finish", | ||
"run_finish", | ||
"teardown", | ||
"test_fn_failure", | ||
]; | ||
if (!ignoredEvents.includes(event.name)) { | ||
console.log( | ||
new Date().toString() + ` Unhandled event [${event.name}] ` + util.inspect(event) | ||
); | ||
} | ||
} | ||
} | ||
|
||
module.exports = DebugEnv; |
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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
module.exports = { | ||
"launch": { | ||
"dumpio": true, | ||
"slowMo": 500, | ||
"headless": process.env.HEADLESS_TEST || false, | ||
"userDataDir": "./data/test-chrome-profile", | ||
args: [ | ||
"--no-sandbox", | ||
"--disable-setuid-sandbox", | ||
"--disable-gpu", | ||
"--disable-dev-shm-usage" | ||
"--disable-dev-shm-usage", | ||
"--no-default-browser-check", | ||
"--no-experiments", | ||
"--no-first-run", | ||
"--no-pings", | ||
"--no-sandbox", | ||
"--no-zygote", | ||
"--single-process", | ||
], | ||
} | ||
}; |
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
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