Skip to content

Commit

Permalink
chore: update web-test-runner version, use old Chrome headless (#7222)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Mar 15, 2024
1 parent 154dec7 commit e36cba8
Show file tree
Hide file tree
Showing 6 changed files with 755 additions and 379 deletions.
22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"@rollup/plugin-terser": "^0.4.4",
"@types/sinon": "^17.0.2",
"@vaadin/testing-helpers": "^0.6.0",
"@web/dev-server": "^0.2.1",
"@web/dev-server-esbuild": "^1.0.1",
"@web/dev-server": "^0.4.3",
"@web/dev-server-esbuild": "^1.0.2",
"@web/rollup-plugin-html": "^2.0.0",
"@web/test-runner": "^0.16.1",
"@web/test-runner-commands": "^0.7.0",
"@web/test-runner-playwright": "^0.10.0",
"@web/test-runner-saucelabs": "^0.10.0",
"@web/test-runner-visual-regression": "^0.8.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-saucelabs": "^0.11.1",
"@web/test-runner-visual-regression": "^0.9.0",
"axios": "^1.4.0",
"dotenv": "^16.0.3",
"eslint": "^8.49.0",
Expand All @@ -61,19 +61,13 @@
"postcss-lit": "^1.1.0",
"prettier": "^2.8.8",
"prettier-plugin-package": "^1.3.0",
"puppeteer": "19.9.0",
"puppeteer-core": "19.9.0",
"replace-in-file": "^6.3.5",
"rimraf": "^5.0.1",
"rollup": "^3.23.0",
"rollup": "^4.4.0",
"stylelint": "^15.10.0",
"stylelint-config-vaadin": "^1.0.0-alpha.1",
"typescript": "^5.1.6"
},
"resolutions": {
"puppeteer": "19.9.0",
"puppeteer-core": "19.9.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix",
Expand Down
4 changes: 4 additions & 0 deletions web-dev-server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ module.exports = {
},
esbuildPlugin({ ts: true }),
],
nodeResolve: {
// Use Lit in production mode
exportConditions: ['default'],
},
};
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 { chromeLauncher } = require('@web/test-runner-chrome');
const { createIntegrationTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

const unitTestsConfig = createIntegrationTestsConfig();
const unitTestsConfig = createIntegrationTestsConfig({
browsers: [
chromeLauncher({
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 { chromeLauncher } = require('@web/test-runner-chrome');
const { createSnapshotTestsConfig } = require('./wtr-utils.js');

module.exports = createSnapshotTestsConfig();
module.exports = createSnapshotTestsConfig({
browsers: [
chromeLauncher({
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 { chromeLauncher } = require('@web/test-runner-chrome');
const { createUnitTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

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

0 comments on commit e36cba8

Please sign in to comment.