Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 7d9fdc9

Browse files
Replace PhantomJS with Headless Chrome (#182)
1 parent 174fc20 commit 7d9fdc9

File tree

4 files changed

+11
-110
lines changed

4 files changed

+11
-110
lines changed

karma.conf.ci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = function(config) {
8787
suite: require('./package.json').name
8888
},
8989

90-
browsers: ['PhantomJS'].concat(Object.keys(customLaunchers)),
90+
browsers: ['ChromeHeadless'].concat(Object.keys(customLaunchers)),
9191

9292
customLaunchers: customLaunchers,
9393

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function(config) {
1616
'test/support/global.js', // NOTE: This must run before all tests
1717
'test/**/*.test.js'
1818
],
19-
browsers: ['PhantomJS'],
19+
browsers: ['ChromeHeadless'],
2020

2121
singleRun: true,
2222

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@
8989
"jquery": "^3.2.1",
9090
"karma": "1.3.0",
9191
"karma-browserify": "^5.0.4",
92-
"karma-chrome-launcher": "^1.0.1",
92+
"karma-chrome-launcher": "^3.1.0",
9393
"karma-coverage": "^1.0.0",
9494
"karma-junit-reporter": "^1.0.0",
9595
"karma-mocha": "1.0.1",
96-
"karma-phantomjs-launcher": "^1.0.0",
9796
"karma-sauce-launcher": "^1.0.0",
9897
"karma-spec-reporter": "0.0.26",
9998
"karma-summary-reporter": "^1.5.0",
@@ -102,7 +101,6 @@
102101
"mocha": "^2.2.5",
103102
"node-fetch": "^2.6.0",
104103
"np": "^3.0.4",
105-
"phantomjs-prebuilt": "^2.1.7",
106104
"prettier-eslint-cli": "^4.7.1",
107105
"proclaim": "^3.4.1",
108106
"puppeteer": "^3.3.0",

yarn.lock

+8-105
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ [email protected]:
19191919
version "0.0.1"
19201920
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
19211921

1922-
concat-stream@1.6.2, concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0:
1922+
concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0:
19231923
version "1.6.2"
19241924
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
19251925
dependencies:
@@ -3003,15 +3003,6 @@ extglob@^2.0.4:
30033003
snapdragon "^0.8.1"
30043004
to-regex "^3.0.1"
30053005

3006-
extract-zip@^1.6.5:
3007-
version "1.6.7"
3008-
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.7.tgz#a840b4b8af6403264c8db57f4f1a74333ef81fe9"
3009-
dependencies:
3010-
concat-stream "1.6.2"
3011-
debug "2.6.9"
3012-
mkdirp "0.5.1"
3013-
yauzl "2.4.1"
3014-
30153006
extract-zip@^2.0.0:
30163007
version "2.0.1"
30173008
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a"
@@ -3053,12 +3044,6 @@ fast-levenshtein@~2.0.4:
30533044
version "2.0.6"
30543045
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
30553046

3056-
fd-slicer@~1.0.1:
3057-
version "1.0.1"
3058-
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
3059-
dependencies:
3060-
pend "~1.2.0"
3061-
30623047
fd-slicer@~1.1.0:
30633048
version "1.1.0"
30643049
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
@@ -3290,24 +3275,10 @@ [email protected]:
32903275
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
32913276
integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=
32923277

3293-
fs-access@^1.0.0:
3294-
version "1.0.1"
3295-
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
3296-
dependencies:
3297-
null-check "^1.0.0"
3298-
32993278
fs-constants@^1.0.0:
33003279
version "1.0.0"
33013280
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
33023281

3303-
fs-extra@^1.0.0:
3304-
version "1.0.0"
3305-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
3306-
dependencies:
3307-
graceful-fs "^4.1.2"
3308-
jsonfile "^2.1.0"
3309-
klaw "^1.0.0"
3310-
33113282
fs-extra@^5.0.0:
33123283
version "5.0.0"
33133284
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
@@ -3588,7 +3559,7 @@ got@^6.7.1:
35883559
unzip-response "^2.0.1"
35893560
url-parse-lax "^1.0.0"
35903561

3591-
graceful-fs@^4.1.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
3562+
graceful-fs@^4.1.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
35923563
version "4.1.11"
35933564
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
35943565

@@ -3751,13 +3722,6 @@ hash.js@^1.0.0, hash.js@^1.0.3:
37513722
inherits "^2.0.3"
37523723
minimalistic-assert "^1.0.0"
37533724

3754-
hasha@^2.2.0:
3755-
version "2.2.0"
3756-
resolved "https://registry.yarnpkg.com/hasha/-/hasha-2.2.0.tgz#78d7cbfc1e6d66303fe79837365984517b2f6ee1"
3757-
dependencies:
3758-
is-stream "^1.0.1"
3759-
pinkie-promise "^2.0.0"
3760-
37613725
hat@^0.0.3:
37623726
version "0.0.3"
37633727
resolved "https://registry.yarnpkg.com/hat/-/hat-0.0.3.tgz#bb014a9e64b3788aed8005917413d4ff3d502d8a"
@@ -4316,7 +4280,7 @@ is-retry-allowed@^1.0.0:
43164280
version "1.1.0"
43174281
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"
43184282

4319-
is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0:
4283+
is-stream@^1.0.0, is-stream@^1.1.0:
43204284
version "1.1.0"
43214285
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
43224286

@@ -4520,12 +4484,6 @@ [email protected], json3@^3.3.2:
45204484
version "3.3.2"
45214485
resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1"
45224486

4523-
jsonfile@^2.1.0:
4524-
version "2.4.0"
4525-
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
4526-
optionalDependencies:
4527-
graceful-fs "^4.1.6"
4528-
45294487
jsonfile@^4.0.0:
45304488
version "4.0.0"
45314489
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -4572,11 +4530,11 @@ karma-browserify@^5.0.4:
45724530
minimatch "^3.0.0"
45734531
os-shim "^0.1.3"
45744532

4575-
karma-chrome-launcher@^1.0.1:
4576-
version "1.0.1"
4577-
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-1.0.1.tgz#be5ae7c4264f9a0a2e22e3d984beb325ad92c8cb"
4533+
karma-chrome-launcher@^3.1.0:
4534+
version "3.1.0"
4535+
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-3.1.0.tgz#805a586799a4d05f4e54f72a204979f3f3066738"
4536+
integrity sha512-3dPs/n7vgz1rxxtynpzZTvb9y/GIaW8xjAwcIGttLbycqoFtI7yo1NGnQi6oFTherRE+GIhCAHZC4vEqWGhNvg==
45784537
dependencies:
4579-
fs-access "^1.0.0"
45804538
which "^1.2.1"
45814539

45824540
karma-coverage@^1.0.0:
@@ -4600,13 +4558,6 @@ [email protected]:
46004558
version "1.0.1"
46014559
resolved "https://registry.yarnpkg.com/karma-mocha/-/karma-mocha-1.0.1.tgz#98519f19115cd1a3455d8a95e14049a878fd0670"
46024560

4603-
karma-phantomjs-launcher@^1.0.0:
4604-
version "1.0.4"
4605-
resolved "https://registry.yarnpkg.com/karma-phantomjs-launcher/-/karma-phantomjs-launcher-1.0.4.tgz#d23ca34801bda9863ad318e3bb4bd4062b13acd2"
4606-
dependencies:
4607-
lodash "^4.0.1"
4608-
phantomjs-prebuilt "^2.1.7"
4609-
46104561
karma-sauce-launcher@^1.0.0:
46114562
version "1.2.0"
46124563
resolved "https://registry.yarnpkg.com/karma-sauce-launcher/-/karma-sauce-launcher-1.2.0.tgz#6f2558ddef3cf56879fa27540c8ae9f8bfd16bca"
@@ -4659,10 +4610,6 @@ [email protected]:
46594610
tmp "0.0.28"
46604611
useragent "^2.1.9"
46614612

4662-
kew@^0.7.0:
4663-
version "0.7.0"
4664-
resolved "https://registry.yarnpkg.com/kew/-/kew-0.7.0.tgz#79d93d2d33363d6fdd2970b335d9141ad591d79b"
4665-
46664613
kind-of@^2.0.1:
46674614
version "2.0.1"
46684615
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5"
@@ -4689,12 +4636,6 @@ kind-of@^6.0.0, kind-of@^6.0.2:
46894636
version "6.0.2"
46904637
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
46914638

4692-
klaw@^1.0.0:
4693-
version "1.3.1"
4694-
resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
4695-
optionalDependencies:
4696-
graceful-fs "^4.1.9"
4697-
46984639
labeled-stream-splicer@^2.0.0:
46994640
version "2.0.1"
47004641
resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926"
@@ -4954,7 +4895,7 @@ lodash.zip@^4.2.0:
49544895
resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
49554896
integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=
49564897

4957-
[email protected], lodash@^4.0.1, lodash@^4.11.1, lodash@^4.16.6, lodash@^4.17.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.5.0, lodash@^4.8.0:
4898+
[email protected], lodash@^4.11.1, lodash@^4.16.6, lodash@^4.17.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.5.0, lodash@^4.8.0:
49584899
version "4.17.10"
49594900
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
49604901

@@ -5720,10 +5661,6 @@ npmlog@^4.0.2:
57205661
gauge "~2.7.3"
57215662
set-blocking "~2.0.0"
57225663

5723-
null-check@^1.0.0:
5724-
version "1.0.0"
5725-
resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd"
5726-
57275664
number-is-nan@^1.0.0:
57285665
version "1.0.1"
57295666
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
@@ -6181,20 +6118,6 @@ performance-now@^2.1.0:
61816118
version "2.1.0"
61826119
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
61836120

6184-
phantomjs-prebuilt@^2.1.7:
6185-
version "2.1.16"
6186-
resolved "https://registry.yarnpkg.com/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.16.tgz#efd212a4a3966d3647684ea8ba788549be2aefef"
6187-
dependencies:
6188-
es6-promise "^4.0.3"
6189-
extract-zip "^1.6.5"
6190-
fs-extra "^1.0.0"
6191-
hasha "^2.2.0"
6192-
kew "^0.7.0"
6193-
progress "^1.1.8"
6194-
request "^2.81.0"
6195-
request-progress "^2.0.1"
6196-
which "^1.2.10"
6197-
61986121
pify@^2.0.0:
61996122
version "2.3.0"
62006123
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
@@ -6313,10 +6236,6 @@ proclaim@^3.4.1:
63136236
dependencies:
63146237
util-inspect "^0.1.8"
63156238

6316-
progress@^1.1.8:
6317-
version "1.1.8"
6318-
resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
6319-
63206239
progress@^2.0.0:
63216240
version "2.0.0"
63226241
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
@@ -6709,12 +6628,6 @@ repeating@^2.0.0:
67096628
dependencies:
67106629
is-finite "^1.0.0"
67116630

6712-
request-progress@^2.0.1:
6713-
version "2.0.1"
6714-
resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-2.0.1.tgz#5d36bb57961c673aa5b788dbc8141fdf23b44e08"
6715-
dependencies:
6716-
throttleit "^1.0.0"
6717-
67186631
67196632
version "2.85.0"
67206633
resolved "https://registry.yarnpkg.com/request/-/request-2.85.0.tgz#5a03615a47c61420b3eb99b7dba204f83603e1fa"
@@ -7937,10 +7850,6 @@ then-fs@^2.0.0:
79377850
dependencies:
79387851
promise ">=3.2 <8"
79397852

7940-
throttleit@^1.0.0:
7941-
version "1.0.0"
7942-
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
7943-
79447853
through2@^2.0.0:
79457854
version "2.0.3"
79467855
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
@@ -8726,12 +8635,6 @@ yargs@~3.10.0:
87268635
decamelize "^1.0.0"
87278636
window-size "0.1.0"
87288637

8729-
8730-
version "2.4.1"
8731-
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
8732-
dependencies:
8733-
fd-slicer "~1.0.1"
8734-
87358638
yauzl@^2.10.0:
87368639
version "2.10.0"
87378640
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"

0 commit comments

Comments
 (0)