From cfac8e0764498713f63a2335b46823e8a9b285c5 Mon Sep 17 00:00:00 2001 From: Bjarki Date: Thu, 8 Oct 2020 13:08:43 +0000 Subject: [PATCH] build: upgrade karma to version 4.4.0 (#39180) Upgrade the karma dependency to version 4.4.0 in the root package.json and in integration tests. Compared to version 4.3.0, which most of the packages were previously depending on, it has the following changes: Bug Fixes - runner: remove explicit error on all tests failed Features - client: Add trusted types support - Preprocessor can return Promise - config: add failOnSkippedTests option. - config: clientDisplayNone sets client elements display none. - deps: Remove core-js dependency. The motivation for upgrading the package is the Trusted Types support that it adds, which is necessary to enable Trusted Types in Angular's unit tests. PR Close #39180 --- .../cli-hello-world-ivy-compat/package.json | 2 +- .../cli-hello-world-ivy-compat/yarn.lock | 9 ++++---- .../cli-hello-world-ivy-i18n/package.json | 2 +- .../cli-hello-world-ivy-i18n/yarn.lock | 9 ++++---- .../cli-hello-world-ivy-minimal/package.json | 2 +- .../cli-hello-world-ivy-minimal/yarn.lock | 9 ++++---- .../cli-hello-world-lazy-rollup/package.json | 2 +- .../cli-hello-world-lazy-rollup/yarn.lock | 9 ++++---- integration/cli-hello-world-lazy/package.json | 2 +- integration/cli-hello-world-lazy/yarn.lock | 9 ++++---- integration/cli-hello-world/package.json | 2 +- integration/cli-hello-world/yarn.lock | 9 ++++---- integration/ivy-i18n/package.json | 2 +- integration/ivy-i18n/yarn.lock | 9 ++++---- integration/ng_update_migrations/package.json | 2 +- integration/ng_update_migrations/yarn.lock | 15 +++++++------ package.json | 2 +- yarn.lock | 21 +++++++++---------- 18 files changed, 54 insertions(+), 63 deletions(-) diff --git a/integration/cli-hello-world-ivy-compat/package.json b/integration/cli-hello-world-ivy-compat/package.json index 4508fc6c61..d44c1b73d5 100644 --- a/integration/cli-hello-world-ivy-compat/package.json +++ b/integration/cli-hello-world-ivy-compat/package.json @@ -37,7 +37,7 @@ "codelyzer": "5.2.0", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world-ivy-compat/yarn.lock b/integration/cli-hello-world-ivy-compat/yarn.lock index a9b3ba8f71..dc75f51f66 100644 --- a/integration/cli-hello-world-ivy-compat/yarn.lock +++ b/integration/cli-hello-world-ivy-compat/yarn.lock @@ -5253,10 +5253,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5264,7 +5264,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/cli-hello-world-ivy-i18n/package.json b/integration/cli-hello-world-ivy-i18n/package.json index ee8209a540..450ddec284 100644 --- a/integration/cli-hello-world-ivy-i18n/package.json +++ b/integration/cli-hello-world-ivy-i18n/package.json @@ -41,7 +41,7 @@ "codelyzer": "5.2.0", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world-ivy-i18n/yarn.lock b/integration/cli-hello-world-ivy-i18n/yarn.lock index db8afee3a5..19b5f62779 100644 --- a/integration/cli-hello-world-ivy-i18n/yarn.lock +++ b/integration/cli-hello-world-ivy-i18n/yarn.lock @@ -5278,10 +5278,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5289,7 +5289,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/cli-hello-world-ivy-minimal/package.json b/integration/cli-hello-world-ivy-minimal/package.json index 59e1df3004..ea176faaa9 100644 --- a/integration/cli-hello-world-ivy-minimal/package.json +++ b/integration/cli-hello-world-ivy-minimal/package.json @@ -37,7 +37,7 @@ "codelyzer": "5.2.0", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world-ivy-minimal/yarn.lock b/integration/cli-hello-world-ivy-minimal/yarn.lock index a9b3ba8f71..dc75f51f66 100644 --- a/integration/cli-hello-world-ivy-minimal/yarn.lock +++ b/integration/cli-hello-world-ivy-minimal/yarn.lock @@ -5253,10 +5253,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5264,7 +5264,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/cli-hello-world-lazy-rollup/package.json b/integration/cli-hello-world-lazy-rollup/package.json index 143b98cc02..12681d1b94 100644 --- a/integration/cli-hello-world-lazy-rollup/package.json +++ b/integration/cli-hello-world-lazy-rollup/package.json @@ -32,7 +32,7 @@ "codelyzer": "5.1.2", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world-lazy-rollup/yarn.lock b/integration/cli-hello-world-lazy-rollup/yarn.lock index f622c33cac..7c6b3b721d 100644 --- a/integration/cli-hello-world-lazy-rollup/yarn.lock +++ b/integration/cli-hello-world-lazy-rollup/yarn.lock @@ -5086,10 +5086,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5097,7 +5097,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/cli-hello-world-lazy/package.json b/integration/cli-hello-world-lazy/package.json index 135a0d685f..8c2584a5f6 100644 --- a/integration/cli-hello-world-lazy/package.json +++ b/integration/cli-hello-world-lazy/package.json @@ -32,7 +32,7 @@ "codelyzer": "5.1.2", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world-lazy/yarn.lock b/integration/cli-hello-world-lazy/yarn.lock index f622c33cac..7c6b3b721d 100644 --- a/integration/cli-hello-world-lazy/yarn.lock +++ b/integration/cli-hello-world-lazy/yarn.lock @@ -5086,10 +5086,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5097,7 +5097,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/cli-hello-world/package.json b/integration/cli-hello-world/package.json index 0f9688b90f..44821b4b1d 100644 --- a/integration/cli-hello-world/package.json +++ b/integration/cli-hello-world/package.json @@ -36,7 +36,7 @@ "codelyzer": "5.2.0", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/cli-hello-world/yarn.lock b/integration/cli-hello-world/yarn.lock index 5d07c26fe8..90bab6cdf6 100644 --- a/integration/cli-hello-world/yarn.lock +++ b/integration/cli-hello-world/yarn.lock @@ -5535,10 +5535,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5546,7 +5546,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/ivy-i18n/package.json b/integration/ivy-i18n/package.json index 71c2f9e6bf..e07a6202d5 100644 --- a/integration/ivy-i18n/package.json +++ b/integration/ivy-i18n/package.json @@ -56,7 +56,7 @@ "codelyzer": "5.2.0", "jasmine-core": "3.5.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.3.0", + "karma": "4.4.0", "karma-chrome-launcher": "3.1.0", "karma-coverage-istanbul-reporter": "2.1.0", "karma-jasmine": "2.0.1", diff --git a/integration/ivy-i18n/yarn.lock b/integration/ivy-i18n/yarn.lock index f15743a5e4..ba2f3923ae 100644 --- a/integration/ivy-i18n/yarn.lock +++ b/integration/ivy-i18n/yarn.lock @@ -5810,10 +5810,10 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.3.0.tgz#e14471ea090a952265a42ebb442b1a3c09832559" - integrity sha512-NSPViHOt+RW38oJklvYxQC4BSQsv737oQlr/r06pCM+slDOr4myuI1ivkRmp+3dVpJDfZt2DmaPJ2wkx+ZZuMQ== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" @@ -5821,7 +5821,6 @@ karma@4.3.0: chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^3.1.3" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" diff --git a/integration/ng_update_migrations/package.json b/integration/ng_update_migrations/package.json index 3f832d53ea..b9190e3993 100644 --- a/integration/ng_update_migrations/package.json +++ b/integration/ng_update_migrations/package.json @@ -36,7 +36,7 @@ "glob": "7.1.4", "jasmine-core": "3.4.0", "jasmine-spec-reporter": "4.2.1", - "karma": "4.0.1", + "karma": "4.4.0", "karma-chrome-launcher": "2.2.0", "karma-jasmine": "2.0.1", "karma-jasmine-html-reporter": "1.4.2", diff --git a/integration/ng_update_migrations/yarn.lock b/integration/ng_update_migrations/yarn.lock index 74b2fe5c60..64eb2b38f9 100644 --- a/integration/ng_update_migrations/yarn.lock +++ b/integration/ng_update_migrations/yarn.lock @@ -4816,18 +4816,17 @@ karma-source-map-support@1.4.0: dependencies: source-map-support "^0.5.5" -karma@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.0.1.tgz#2581d6caa0d4cd28b65131561b47bad6d5478773" - integrity sha512-ind+4s03BqIXas7ZmraV3/kc5+mnqwCd+VDX1FndS6jxbt03kQKX2vXrWxNLuCjVYmhMwOZosAEKMM0a2q7w7A== +karma@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.0.tgz#10f16117a37b388aa86618a8815b5c9acf1d7d6d" + integrity sha512-+mvzi+gBWHPrlqt1KE0WrrjcKuePX7WWJjTYNaewp6U00inno/DTSk+QHMbc+aV09scErWjhJukxswFyS7u2qw== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" - braces "^2.3.2" - chokidar "^2.0.3" + braces "^3.0.2" + chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^2.2.0" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" @@ -4835,7 +4834,7 @@ karma@4.0.1: graceful-fs "^4.1.2" http-proxy "^1.13.0" isbinaryfile "^3.0.0" - lodash "^4.17.11" + lodash "^4.17.14" log4js "^4.0.0" mime "^2.3.1" minimatch "^3.0.2" diff --git a/package.json b/package.json index efb615c4f0..c425e2a2ad 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "jasmine-core": "^3.5.0", "jquery": "3.0.0", "js-levenshtein": "^1.1.6", - "karma": "~4.1.0", + "karma": "~4.4.0", "karma-chrome-launcher": "^2.2.0", "karma-firefox-launcher": "^1.2.0", "karma-jasmine": "^2.0.1", diff --git a/yarn.lock b/yarn.lock index 39666f8b87..b1cdef9e93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3548,7 +3548,7 @@ braces@^2.3.1, braces@^2.3.2: split-string "^3.0.2" to-regex "^3.0.1" -braces@~3.0.2: +braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -4108,7 +4108,7 @@ check-side-effects@0.0.21: optionalDependencies: fsevents "~2.1.2" -chokidar@^2.0.3, chokidar@^2.1.8: +chokidar@^2.1.8: version "2.1.8" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg== @@ -4952,7 +4952,7 @@ core-js@3.6.4: resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.4.tgz#440a83536b458114b9cb2ac1580ba377dc470647" integrity sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw== -core-js@^2.2.0, core-js@^2.4.0, core-js@^2.4.1: +core-js@^2.4.0, core-js@^2.4.1: version "2.6.11" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg== @@ -9389,18 +9389,17 @@ karma-sourcemap-loader@^0.3.7: dependencies: graceful-fs "^4.1.2" -karma@~4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-4.1.0.tgz#d07387c9743a575b40faf73e8a3eb5421c2193e1" - integrity sha512-xckiDqyNi512U4dXGOOSyLKPwek6X/vUizSy2f3geYevbLj+UIdvNwbn7IwfUIL2g1GXEPWt/87qFD1fBbl/Uw== +karma@~4.4.0: + version "4.4.1" + resolved "https://registry.yarnpkg.com/karma/-/karma-4.4.1.tgz#6d9aaab037a31136dc074002620ee11e8c2e32ab" + integrity sha512-L5SIaXEYqzrh6b1wqYC42tNsFMx2PWuxky84pK9coK09MvmL7mxii3G3bZBh/0rvD27lqDd0le9jyhzvwif73A== dependencies: bluebird "^3.3.0" body-parser "^1.16.1" - braces "^2.3.2" - chokidar "^2.0.3" + braces "^3.0.2" + chokidar "^3.0.0" colors "^1.1.0" connect "^3.6.0" - core-js "^2.2.0" di "^0.0.1" dom-serialize "^2.2.0" flatted "^2.0.0" @@ -9408,7 +9407,7 @@ karma@~4.1.0: graceful-fs "^4.1.2" http-proxy "^1.13.0" isbinaryfile "^3.0.0" - lodash "^4.17.11" + lodash "^4.17.14" log4js "^4.0.0" mime "^2.3.1" minimatch "^3.0.2"