From 51364cf9e8ed8117f278ab05fea5b1ad64956f12 Mon Sep 17 00:00:00 2001 From: Martin Staffa Date: Fri, 12 Jan 2018 17:50:05 +0100 Subject: [PATCH] chore(node): add karma launchers for Edge, IE, and Safari That makes it easier to test these browsers locally --- DEVELOPERS.md | 5 +---- package.json | 3 +++ yarn.lock | 22 +++++++++++++++++++++- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 4d5e9ccd58eb..9e6d738a7e66 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -119,7 +119,7 @@ tests once on Chrome run: yarn grunt test:unit ``` -To run the tests on other browsers (Chrome and Firefox are pre-configured) use: +To run the tests on other browsers use the command line flag: ```shell yarn grunt test:unit --browsers=Chrome,Firefox @@ -127,9 +127,6 @@ yarn grunt test:unit --browsers=Chrome,Firefox **Note:** there should be _no spaces between browsers_. `Chrome, Firefox` is INVALID. -If you want to test locally on Safari, Internet Explorer, or Edge, you must install -the respective `karma--launcher` from npm. - If you have a Saucelabs or Browserstack account, you can also run the unit tests on these services via our pre-defined customLaunchers. See the [karma config file](/karma-shared.conf.js) for all pre-configured browsers. diff --git a/package.json b/package.json index b6e80c2178b9..255b569f30a6 100644 --- a/package.json +++ b/package.json @@ -65,9 +65,12 @@ "karma": "^2.0.0", "karma-browserstack-launcher": "^1.2.0", "karma-chrome-launcher": "^2.1.1", + "karma-edge-launcher": "^0.4.2", "karma-firefox-launcher": "^1.0.1", + "karma-ie-launcher": "^1.0.0", "karma-jasmine": "^1.1.0", "karma-junit-reporter": "^1.2.0", + "karma-safari-launcher": "^1.0.0", "karma-sauce-launcher": "^1.2.0", "karma-script-launcher": "^1.0.0", "karma-spec-reporter": "^0.0.31", diff --git a/yarn.lock b/yarn.lock index 4757bc735904..62016649857b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1816,6 +1816,10 @@ ecc-jsbn@~0.1.1: dependencies: jsbn "~0.1.0" +edge-launcher@1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/edge-launcher/-/edge-launcher-1.2.2.tgz#eb40aafbd067a6ea76efffab0647bcd5509b37b2" + ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -3793,10 +3797,22 @@ karma-chrome-launcher@^2.1.1: fs-access "^1.0.0" which "^1.2.1" +karma-edge-launcher@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/karma-edge-launcher/-/karma-edge-launcher-0.4.2.tgz#3d9529b09b13c909c5f3ceee12d00e7f9a989b3d" + dependencies: + edge-launcher "1.2.2" + karma-firefox-launcher@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/karma-firefox-launcher/-/karma-firefox-launcher-1.0.1.tgz#ce58f47c2013a88156d55a5d61337c099cf5bb51" +karma-ie-launcher@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/karma-ie-launcher/-/karma-ie-launcher-1.0.0.tgz#497986842c490190346cd89f5494ca9830c6d59c" + dependencies: + lodash "^4.6.1" + karma-jasmine@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.0.tgz#22e4c06bf9a182e5294d1f705e3733811b810acf" @@ -3808,6 +3824,10 @@ karma-junit-reporter@^1.2.0: path-is-absolute "^1.0.0" xmlbuilder "8.2.2" +karma-safari-launcher@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/karma-safari-launcher/-/karma-safari-launcher-1.0.0.tgz#96982a2cc47d066aae71c553babb28319115a2ce" + karma-sauce-launcher@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/karma-sauce-launcher/-/karma-sauce-launcher-1.2.0.tgz#6f2558ddef3cf56879fa27540c8ae9f8bfd16bca" @@ -4196,7 +4216,7 @@ lodash@^3.10.1, lodash@~3.10.1: version "3.10.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" -lodash@^4.15.0, lodash@^4.17.4, lodash@^4.5.0: +lodash@^4.15.0, lodash@^4.17.4, lodash@^4.5.0, lodash@^4.6.1: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"