From fde547d79bff70d9818845a2f0d9535c45b682cb Mon Sep 17 00:00:00 2001 From: marlo-longley Date: Tue, 15 Oct 2024 09:41:39 -0500 Subject: [PATCH] Update puppeteer versions and config --- .github/workflows/node.js.yml | 8 ++++++-- jest-puppeteer.config.js | 1 + package.json | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bc23b2fac..70a4e0c04 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -17,11 +17,15 @@ jobs: node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - uses: browser-actions/setup-chrome@v1 + id: setup-chrome + - run: | + echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }} >> $GITHUB_ENV - run: npm install - run: npm test - name: Upload coverage to Codecov diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index 31bf265ad..1926d2b88 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -1,5 +1,6 @@ module.exports = { launch: { + executablePath: process.env.CHROME_BIN || 'chromium', headless: process.env.HEADLESS !== 'false' ? 'new' : false, }, server: [{ diff --git a/package.json b/package.json index 2955f1025..caf0135e9 100644 --- a/package.json +++ b/package.json @@ -122,9 +122,9 @@ "jest": "^29.3.1", "jest-environment-jsdom": "^29.4.3", "jest-fetch-mock": "^3.0.0", - "jest-puppeteer": "^9.0.2", + "jest-puppeteer": "^10.0.0", "jsdom": "^23.0.0", - "puppeteer": "^21.0.0", + "puppeteer": "^23.0.0", "react": "^18.0.0", "react-dnd-test-backend": "^16.0.1", "react-dom": "^18.0.0",