chore(node): add karma launchers for Edge, IE, and Safari

That makes it easier to run the tests with these browsers locally.

Closes #16407
This commit is contained in:
Martin Staffa
2018-01-15 13:07:45 +01:00
committed by GitHub
parent b86876c4a2
commit 62e2ec18e6
3 changed files with 25 additions and 5 deletions
+1 -4
View File
@@ -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-<browser>-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.
+3
View File
@@ -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",
+21 -1
View File
@@ -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"