Skip to content

Commit

Permalink
Merge pull request #16519 from timvandermeij/puppeteer
Browse files Browse the repository at this point in the history
Improve Puppeteer's `trimCache` API usage
  • Loading branch information
timvandermeij authored Jun 4, 2023
2 parents a5d0af3 + a9093a7 commit 8a5af64
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 51 deletions.
85 changes: 36 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"postcss": "^8.4.23",
"postcss-dir-pseudo-class": "^7.0.2",
"prettier": "^2.8.8",
"puppeteer": "^20.4.0",
"puppeteer": "^20.5.0",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^15.6.2",
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ async function startBrowsers(initSessionCallback, makeStartUrl = null) {
// Remove old browser revisions from Puppeteer's cache. Updating Puppeteer can
// cause new browser revisions to be downloaded, so trimming the cache will
// prevent the disk from filling up over time.
await puppeteer.default.trimCache();
await puppeteer.trimCache();

const browserNames = options.noChrome ? ["firefox"] : ["firefox", "chrome"];

Expand Down

0 comments on commit 8a5af64

Please sign in to comment.