-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✂️ dependency: remove puppeteer in dependencies #6204
Conversation
chenshuai2144
commented
Mar 25, 2020
•
edited
Loading
edited
- 不需要默认安装 puppeteer
- 自动使用用户的 chrome,如果找不到会再安装 puppeteer
const findChrome = require('carlo/lib/find_chrome'); | ||
|
||
const getBrowser = async () => { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Unnecessary block.
console.log('🧲 no find chrome'); | ||
} | ||
|
||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Unnecessary block.
} | ||
|
||
async teardown() { | ||
const { page, browser } = this.global; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Unnecessary block.