Skip to content

Commit

Permalink
chore: use puppeteer launcher to run Chrome tests, bump Node to 18 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Sep 19, 2024
1 parent 4b1b78e commit 3e072bd
Show file tree
Hide file tree
Showing 9 changed files with 1,958 additions and 764 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@vaadin/testing-helpers": "^0.3.2",
"@web/dev-server": "^0.1.34",
"@web/rollup-plugin-html": "^1.11.0",
"@web/test-runner": "^0.14.0",
"@web/test-runner-commands": "^0.6.5",
"@web/test-runner-playwright": "^0.8.10",
"@web/test-runner-saucelabs": "^0.8.1",
"@web/test-runner-visual-regression": "^0.6.6",
"@web/dev-server": "^0.3.0",
"@web/rollup-plugin-html": "^2.0.0",
"@web/test-runner": "^0.17.0",
"@web/test-runner-commands": "^0.7.0",
"@web/test-runner-playwright": "^0.10.0",
"@web/test-runner-puppeteer": "^0.16.0",
"@web/test-runner-saucelabs": "^0.10.0",
"@web/test-runner-visual-regression": "^0.8.0",
"axios": "^0.26.0",
"dotenv": "^16.0.0",
"eslint": "^8.24.0",
Expand All @@ -61,7 +62,7 @@
"prettier-plugin-package": "^1.3.0",
"replace-in-file": "^6.3.5",
"rimraf": "^3.0.2",
"rollup": "^2.79.1",
"rollup": "^3.23.0",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^14.13.0",
"stylelint-config-prettier": "^9.0.3",
Expand Down
11 changes: 10 additions & 1 deletion web-test-runner-it.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
/* eslint-env node */
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createIntegrationTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

const unitTestsConfig = createIntegrationTestsConfig();
const unitTestsConfig = createIntegrationTestsConfig({
browsers: [
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
}),
],
});

module.exports = {
...unitTestsConfig,
Expand Down
11 changes: 10 additions & 1 deletion web-test-runner-snapshots.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/* eslint-env node */
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createSnapshotTestsConfig } = require('./wtr-utils.js');

module.exports = createSnapshotTestsConfig();
module.exports = createSnapshotTestsConfig({
browsers: [
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
}),
],
});
8 changes: 8 additions & 0 deletions web-test-runner.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
/* eslint-env node */
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createUnitTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

const unitTestsConfig = createUnitTestsConfig({
browsers: [
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
}),
],
coverageConfig: {
include: ['packages/**/src/**/*', 'packages/*/*.js'],
threshold: {
Expand Down
Loading

0 comments on commit 3e072bd

Please sign in to comment.