From f0ed2b85fe911257d348097fa7bc360ea2f3b0f1 Mon Sep 17 00:00:00 2001 From: Peter Petrov Date: Wed, 24 Jul 2024 18:51:07 +0300 Subject: [PATCH] Install chrome before running project tests --- .github/workflows/tests.yml | 5 +++++ projects/js-packages/critical-css-gen/jest.config.cjs | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5face1f9d875e..8a7b7a690e53f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -72,6 +72,11 @@ jobs: php: ${{ matrix.php }} node: ${{ matrix.node }} + - name: Install Chrome + run: | + sudo apt-get update + sudo apt-get install -y google-chrome-stable + - name: Monorepo install run: | echo "::group::Pnpm" diff --git a/projects/js-packages/critical-css-gen/jest.config.cjs b/projects/js-packages/critical-css-gen/jest.config.cjs index 50971ab487cce..1b43920c97941 100644 --- a/projects/js-packages/critical-css-gen/jest.config.cjs +++ b/projects/js-packages/critical-css-gen/jest.config.cjs @@ -2,5 +2,4 @@ const baseConfig = require( 'jetpack-js-tools/jest/config.base.js' ); module.exports = { ...baseConfig, - testEnvironment: 'jest-environment-puppeteer', };