Puppeteer とは?
# はじめにE2EテストやWebスクレイビングするときに使うPuppeteerについて調べてみました。Googleのカンファレンスでも紹介されていたのとNode.jsを使うことがあるので、それに合わせてPuppeteerも使っていこうと思います。# 準備```bash$ brew install yarn$ yarn add puppeteer$ yarn add -D [at]types/node typescript ts-node [at]types/puppeteer```# 最小限の構成```json:package.json{ "scripts": { "test": "ts-node src/all.ts" }, "dependencies": { "puppeteer": "^5.2.1" }, "devDependencies": { "[at]types/node": "^14.6.4", "[at]types/puppeteer": "^3.0.1", "ts-node": "^9.0.0", "typescript": "^4.0.2" }}``````json:tsconfig.json{ "compilerOptions": { "sourceMap": true, "target": "es2017", "module": "commonjs", "lib": ["dom", "es2017"], "outDir": "./dist", "rootDir": ".
0