From 3e39a26a2d31006ea6eaa61c71b9cdd1022a6fcf Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Wed, 7 Jul 2021 21:35:21 -0400 Subject: [PATCH] chore(deps): update dependency @web/test-runner-visual-regression to v0.6.1 --- visual-regression/package-lock.json | 245 +++++++++++++++++-- visual-regression/package.json | 3 +- visual-regression/web-test-runner.config.mjs | 4 +- 3 files changed, 232 insertions(+), 20 deletions(-) diff --git a/visual-regression/package-lock.json b/visual-regression/package-lock.json index ee4389e27..616d4c0c4 100644 --- a/visual-regression/package-lock.json +++ b/visual-regression/package-lock.json @@ -365,9 +365,9 @@ "dev": true }, "@types/mkdirp": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-1.0.1.tgz", - "integrity": "sha512-HkGSK7CGAXncr8Qn/0VqNtExEE+PHMWb+qlR1faHMao7ng6P3tAaoWWBMdva0gL5h4zprjIO89GJOLXsMcDm1Q==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-1.0.2.tgz", + "integrity": "sha512-o0K1tSO0Dx5X6xlU5F1D6625FawhC3dU3iqr25lluNv/+/QIVH8RLNEiVokgIZo+mz+87w/3Mkg/VvQS+J51fQ==", "dev": true, "requires": { "@types/node": "*" @@ -392,18 +392,18 @@ "dev": true }, "@types/pixelmatch": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/@types/pixelmatch/-/pixelmatch-5.2.2.tgz", - "integrity": "sha512-ndpfW/H8+SAiI3wt+f8DlHGgB7OeBdgFgBJ6v/1l3SpJ0MCn9wtXFb4mUccMujN5S4DMmAh7MVy1O3WcXrHUKw==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@types/pixelmatch/-/pixelmatch-5.2.4.tgz", + "integrity": "sha512-HDaSHIAv9kwpMN7zlmwfTv6gax0PiporJOipcrGsVNF3Ba+kryOZc0Pio5pn6NhisgWr7TaajlPEKTbTAypIBQ==", "dev": true, "requires": { "@types/node": "*" } }, "@types/pngjs": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@types/pngjs/-/pngjs-6.0.0.tgz", - "integrity": "sha512-PyZJHtd/mGA9a+cb3RQvd2pj56OIoo522sEhGZvq9THfBv5skyPRo50o3Hvy+n6U0u8RWteMHhlvLfN4FOZTaA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@types/pngjs/-/pngjs-6.0.1.tgz", + "integrity": "sha512-J39njbdW1U/6YyVXvC9+1iflZghP8jgRf2ndYghdJb5xL49LYDB+1EuAxfbuJ2IBbWIL3AjHPQhgaTxT3YaYeg==", "dev": true, "requires": { "@types/node": "*" @@ -946,12 +946,121 @@ } }, "@web/test-runner-commands": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@web/test-runner-commands/-/test-runner-commands-0.4.1.tgz", - "integrity": "sha512-y1U9+jucQ1ZB9YRgMFIjXTUSu/in54yt4Lf4GcY9fHoSyGVWDub085ARWipmagsD9SRN1QnIYTkMk+jRa/EiLQ==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@web/test-runner-commands/-/test-runner-commands-0.5.5.tgz", + "integrity": "sha512-tWHez95kqJbtcO79eIVtpJcznqGf4OMVo4fWdJhPVdp2GY81SeE2WAE7RLFgZuFxW33p/ycP7LmotELqU0JLIg==", "dev": true, "requires": { - "@web/test-runner-core": "^0.10.8" + "@web/test-runner-core": "^0.10.14", + "mkdirp": "^1.0.4" + }, + "dependencies": { + "@web/test-runner-core": { + "version": "0.10.18", + "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.10.18.tgz", + "integrity": "sha512-4emmE7tPMh5Wt/79tM1YYcBBnhBc4ecQxTtuyIIDeLPX8mtJoOx9OcP/V4baWDGOpNt6F4Ir6ELpOsconCISoA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.11", + "@types/co-body": "^5.1.0", + "@types/convert-source-map": "^1.5.1", + "@types/debounce": "^1.2.0", + "@types/istanbul-lib-coverage": "^2.0.3", + "@types/istanbul-reports": "^3.0.0", + "@types/uuid": "^8.3.0", + "@web/browser-logs": "^0.2.1", + "@web/dev-server-core": "^0.3.12", + "chalk": "^4.1.0", + "chokidar": "^3.4.3", + "cli-cursor": "^3.1.0", + "co-body": "^6.1.0", + "convert-source-map": "^1.7.0", + "debounce": "^1.2.0", + "dependency-graph": "^0.11.0", + "globby": "^11.0.1", + "ip": "^1.1.5", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-reports": "^3.0.2", + "log-update": "^4.0.0", + "open": "^8.0.2", + "picomatch": "^2.2.2", + "source-map": "^0.7.3", + "uuid": "^8.3.2" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, "@web/test-runner-core": { @@ -1099,26 +1208,126 @@ } }, "@web/test-runner-visual-regression": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@web/test-runner-visual-regression/-/test-runner-visual-regression-0.4.1.tgz", - "integrity": "sha512-ZlsRzTqkW05O7sNvQgY9k1b3lebqf2wUNBnERt42Vv6B8MFx25F1/faxTTJccP69ORlPw6P5byobGh+K/KgquQ==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@web/test-runner-visual-regression/-/test-runner-visual-regression-0.6.1.tgz", + "integrity": "sha512-7G52dqklWAaOfydzy41fysZptut3+/dIk9TpS/jujAwy+FCD9m76F6CSRp0A+fKY0xzYS2zaXwVUTigwzOqV9w==", "dev": true, "requires": { "@types/mkdirp": "^1.0.1", "@types/pixelmatch": "^5.2.2", "@types/pngjs": "^6.0.0", - "@web/test-runner-commands": "^0.4.1", - "@web/test-runner-core": "^0.10.8", + "@web/test-runner-commands": "^0.5.0", + "@web/test-runner-core": "^0.10.13", "mkdirp": "^1.0.4", "pixelmatch": "^5.2.1", "pngjs": "^6.0.0" }, "dependencies": { + "@web/test-runner-core": { + "version": "0.10.18", + "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.10.18.tgz", + "integrity": "sha512-4emmE7tPMh5Wt/79tM1YYcBBnhBc4ecQxTtuyIIDeLPX8mtJoOx9OcP/V4baWDGOpNt6F4Ir6ELpOsconCISoA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.11", + "@types/co-body": "^5.1.0", + "@types/convert-source-map": "^1.5.1", + "@types/debounce": "^1.2.0", + "@types/istanbul-lib-coverage": "^2.0.3", + "@types/istanbul-reports": "^3.0.0", + "@types/uuid": "^8.3.0", + "@web/browser-logs": "^0.2.1", + "@web/dev-server-core": "^0.3.12", + "chalk": "^4.1.0", + "chokidar": "^3.4.3", + "cli-cursor": "^3.1.0", + "co-body": "^6.1.0", + "convert-source-map": "^1.7.0", + "debounce": "^1.2.0", + "dependency-graph": "^0.11.0", + "globby": "^11.0.1", + "ip": "^1.1.5", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-reports": "^3.0.2", + "log-update": "^4.0.0", + "open": "^8.0.2", + "picomatch": "^2.2.2", + "source-map": "^0.7.3", + "uuid": "^8.3.2" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true + }, + "open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, diff --git a/visual-regression/package.json b/visual-regression/package.json index e6482dc35..59c41f12e 100644 --- a/visual-regression/package.json +++ b/visual-regression/package.json @@ -10,6 +10,7 @@ "scripts": { "start": "web-dev-server --open demo/ --node-resolve", "start:watch": "web-dev-server --open demo/ --node-resolve --watch", + "pretest": "web-test-runner test/**/*.test.js --coverage --node-resolve --update-visual-baseline", "test": "web-test-runner test/**/*.test.js --coverage --node-resolve", "test:watch": "web-test-runner test/**/*.test.js --node-resolve --watch" }, @@ -21,6 +22,6 @@ "@open-wc/testing": "2.5.33", "@web/dev-server": "0.1.18", "@web/test-runner": "0.13.13", - "@web/test-runner-visual-regression": "0.4.1" + "@web/test-runner-visual-regression": "0.6.1" } } diff --git a/visual-regression/web-test-runner.config.mjs b/visual-regression/web-test-runner.config.mjs index 41d834d44..fc0f14c7f 100644 --- a/visual-regression/web-test-runner.config.mjs +++ b/visual-regression/web-test-runner.config.mjs @@ -1,5 +1,7 @@ import { visualRegressionPlugin } from "@web/test-runner-visual-regression/plugin"; export default { - plugins: [visualRegressionPlugin()], + plugins: [visualRegressionPlugin({ + update: process.argv.includes('--update-visual-baseline'), + })], };