Skip to content

Commit

Permalink
Puppeteer: Remove unnecessary setup/teardown logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Apr 27, 2024
1 parent d4bd629 commit 0b6d302
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/e2e/puppeteer-environment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable no-useless-constructor */
/* eslint-disable no-console */

const chalk = require('chalk')
const JsDomEnvironment = require('jest-environment-jsdom')
const puppeteer = require('puppeteer')

Expand All @@ -13,8 +12,6 @@ class PuppeteerEnvironment extends JsDomEnvironment {
}

async setup() {
console.info(chalk.yellow('Setup Test Environment.'))

await super.setup()

// Note: this.global is not global to all test suites; it is sandboxed to a single test module, e.g. caret.ts
Expand All @@ -24,7 +21,6 @@ class PuppeteerEnvironment extends JsDomEnvironment {
}

async teardown() {
console.info(chalk.yellow('Teardown Test Environment.'))
await this.global.browser.close()
await super.teardown()
}
Expand Down

0 comments on commit 0b6d302

Please sign in to comment.