Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 62e2ec1

Browse files
authored
chore(node): add karma launchers for Edge, IE, and Safari
That makes it easier to run the tests with these browsers locally. Closes #16407
1 parent b86876c commit 62e2ec1

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

DEVELOPERS.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,14 @@ tests once on Chrome run:
119119
yarn grunt test:unit
120120
```
121121

122-
To run the tests on other browsers (Chrome and Firefox are pre-configured) use:
122+
To run the tests on other browsers use the command line flag:
123123

124124
```shell
125125
yarn grunt test:unit --browsers=Chrome,Firefox
126126
```
127127

128128
**Note:** there should be _no spaces between browsers_. `Chrome, Firefox` is INVALID.
129129

130-
If you want to test locally on Safari, Internet Explorer, or Edge, you must install
131-
the respective `karma-<browser>-launcher` from npm.
132-
133130
If you have a Saucelabs or Browserstack account, you can also run the unit tests on these services
134131
via our pre-defined customLaunchers. See the [karma config file](/karma-shared.conf.js) for all pre-configured browsers.
135132

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@
6565
"karma": "^2.0.0",
6666
"karma-browserstack-launcher": "^1.2.0",
6767
"karma-chrome-launcher": "^2.1.1",
68+
"karma-edge-launcher": "^0.4.2",
6869
"karma-firefox-launcher": "^1.0.1",
70+
"karma-ie-launcher": "^1.0.0",
6971
"karma-jasmine": "^1.1.0",
7072
"karma-junit-reporter": "^1.2.0",
73+
"karma-safari-launcher": "^1.0.0",
7174
"karma-sauce-launcher": "^1.2.0",
7275
"karma-script-launcher": "^1.0.0",
7376
"karma-spec-reporter": "^0.0.31",

yarn.lock

+21-1
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,10 @@ ecc-jsbn@~0.1.1:
18161816
dependencies:
18171817
jsbn "~0.1.0"
18181818

1819+
1820+
version "1.2.2"
1821+
resolved "https://registry.yarnpkg.com/edge-launcher/-/edge-launcher-1.2.2.tgz#eb40aafbd067a6ea76efffab0647bcd5509b37b2"
1822+
18191823
18201824
version "1.1.1"
18211825
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
@@ -3793,10 +3797,22 @@ karma-chrome-launcher@^2.1.1:
37933797
fs-access "^1.0.0"
37943798
which "^1.2.1"
37953799

3800+
karma-edge-launcher@^0.4.2:
3801+
version "0.4.2"
3802+
resolved "https://registry.yarnpkg.com/karma-edge-launcher/-/karma-edge-launcher-0.4.2.tgz#3d9529b09b13c909c5f3ceee12d00e7f9a989b3d"
3803+
dependencies:
3804+
edge-launcher "1.2.2"
3805+
37963806
karma-firefox-launcher@^1.0.1:
37973807
version "1.0.1"
37983808
resolved "https://registry.yarnpkg.com/karma-firefox-launcher/-/karma-firefox-launcher-1.0.1.tgz#ce58f47c2013a88156d55a5d61337c099cf5bb51"
37993809

3810+
karma-ie-launcher@^1.0.0:
3811+
version "1.0.0"
3812+
resolved "https://registry.yarnpkg.com/karma-ie-launcher/-/karma-ie-launcher-1.0.0.tgz#497986842c490190346cd89f5494ca9830c6d59c"
3813+
dependencies:
3814+
lodash "^4.6.1"
3815+
38003816
karma-jasmine@^1.1.0:
38013817
version "1.1.0"
38023818
resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.0.tgz#22e4c06bf9a182e5294d1f705e3733811b810acf"
@@ -3808,6 +3824,10 @@ karma-junit-reporter@^1.2.0:
38083824
path-is-absolute "^1.0.0"
38093825
xmlbuilder "8.2.2"
38103826

3827+
karma-safari-launcher@^1.0.0:
3828+
version "1.0.0"
3829+
resolved "https://registry.yarnpkg.com/karma-safari-launcher/-/karma-safari-launcher-1.0.0.tgz#96982a2cc47d066aae71c553babb28319115a2ce"
3830+
38113831
karma-sauce-launcher@^1.2.0:
38123832
version "1.2.0"
38133833
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:
41964216
version "3.10.1"
41974217
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
41984218

4199-
lodash@^4.15.0, lodash@^4.17.4, lodash@^4.5.0:
4219+
lodash@^4.15.0, lodash@^4.17.4, lodash@^4.5.0, lodash@^4.6.1:
42004220
version "4.17.4"
42014221
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
42024222

0 commit comments

Comments
 (0)