Archived
1
0

feat: add logger to tests

This commit is contained in:
Joe Previte
2021-04-02 16:49:01 -07:00
parent f241e38907
commit dd80eed5b0
6 changed files with 38 additions and 6 deletions

View File

@ -4,7 +4,12 @@
// tests are running in multiple browsers
describe("Browser gutcheck", () => {
beforeEach(async () => {
await jestPlaywright.resetBrowser()
await jestPlaywright.resetBrowser({
logger: {
isEnabled: (name) => name === "browser",
log: (name, severity, message, args) => console.log(`${name} ${message}`),
},
})
})
test("should display correct browser based on userAgent", async () => {