forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade enzyme and enzyme-adapter-react-16 to the latest (elastic#37064)
* Upgrade enzyme and enzyme-adapter-react-16 to the latest * Skip failed expectation * Update yarn.lock * Update snapshot
- Loading branch information
Showing
5 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,7 +325,13 @@ test('field name change', async () => { | |
// ensure that after async loading is complete the DynamicOptionsSwitch is disabled, because this is not a "string" field | ||
expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(0); | ||
await update(); | ||
|
||
|
||
/* | ||
The issue with [email protected] -> the fix has not been released yet -> https://github.com/airbnb/enzyme/pull/2027 | ||
TODO: Enable the expectation after the next patch released | ||
expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(1); | ||
*/ | ||
|
||
component.setProps({ | ||
controlParams | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
x-pack/plugins/siem/public/components/stat_items/__snapshots__/index.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5329,6 +5329,11 @@ array-equal@^1.0.0: | |
resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" | ||
integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= | ||
|
||
array-filter@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83" | ||
integrity sha1-uveeYubvTCpMC4MSMtr/7CUfnYM= | ||
|
||
array-filter@~0.0.0: | ||
version "0.0.1" | ||
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" | ||
|
@@ -10415,10 +10420,10 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/env-variable/-/env-variable-0.0.5.tgz#913dd830bef11e96a039c038d4130604eba37f88" | ||
integrity sha512-zoB603vQReOFvTg5xMl9I1P2PnHsHQQKTEowsKKD7nseUfJq6UWzK+4YtlWUO1nhiQUxe6XMkk+JleSZD1NZFA== | ||
|
||
enzyme-adapter-react-16@^1.10.0: | ||
version "1.13.2" | ||
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.13.2.tgz#8a574d7cbbef7ef0cab2022e9bfc12aeaebb7ae5" | ||
integrity sha512-h0neTuAAFfQUgEZ+PPHVIMDFJ9+CGafI8AjojNlSVh4Fd1pLDgtl2OeVkm4yKF7RSgzrPAwugq4JW8Jjo2iRJA== | ||
enzyme-adapter-react-16@^1.13.1: | ||
version "1.13.1" | ||
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.13.1.tgz#2e8ee300e38674b9914ae52b04af9493050355e2" | ||
integrity sha512-DCKbkiVlfLTbn4SXO8mXDQx1SmmwON5oKXn2QfQSMCt8eTYGwUXy/OBGSuss6KKwY5w5QfK1sQFxhgFOkMCjrw== | ||
dependencies: | ||
enzyme-adapter-utils "^1.12.0" | ||
has "^1.0.3" | ||
|
@@ -10427,7 +10432,7 @@ enzyme-adapter-react-16@^1.10.0: | |
prop-types "^15.7.2" | ||
react-is "^16.8.6" | ||
react-test-renderer "^16.0.0-0" | ||
semver "^5.7.0" | ||
semver "^5.6.0" | ||
|
||
enzyme-adapter-utils@^1.10.0: | ||
version "1.10.0" | ||
|
@@ -10459,18 +10464,20 @@ enzyme-to-json@^3.3.4: | |
dependencies: | ||
lodash "^4.17.4" | ||
|
||
enzyme@^3.7.0: | ||
version "3.8.0" | ||
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.8.0.tgz#646d2d5d0798cb98fdec39afcee8a53237b47ad5" | ||
integrity sha512-bfsWo5nHyZm1O1vnIsbwdfhU989jk+squU9NKvB+Puwo5j6/Wg9pN5CO0YJelm98Dao3NPjkDZk+vvgwpMwYxw== | ||
enzyme@^3.9.0: | ||
version "3.9.0" | ||
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.9.0.tgz#2b491f06ca966eb56b6510068c7894a7e0be3909" | ||
integrity sha512-JqxI2BRFHbmiP7/UFqvsjxTirWoM1HfeaJrmVSZ9a1EADKkZgdPcAuISPMpoUiHlac9J4dYt81MC5BBIrbJGMg== | ||
dependencies: | ||
array.prototype.flat "^1.2.1" | ||
cheerio "^1.0.0-rc.2" | ||
function.prototype.name "^1.1.0" | ||
has "^1.0.3" | ||
html-element-map "^1.0.0" | ||
is-boolean-object "^1.0.0" | ||
is-callable "^1.1.4" | ||
is-number-object "^1.0.3" | ||
is-regex "^1.0.4" | ||
is-string "^1.0.4" | ||
is-subset "^0.1.1" | ||
lodash.escape "^4.0.1" | ||
|
@@ -14027,6 +14034,13 @@ hpack.js@^2.1.6: | |
readable-stream "^2.0.1" | ||
wbuf "^1.1.0" | ||
|
||
html-element-map@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.0.1.tgz#3c4fcb4874ebddfe4283b51c8994e7713782b592" | ||
integrity sha512-BZSfdEm6n706/lBfXKWa4frZRZcT5k1cOusw95ijZsHlI+GdgY0v95h6IzO3iIDf2ROwq570YTwqNPqHcNMozw== | ||
dependencies: | ||
array-filter "^1.0.0" | ||
|
||
html-encoding-sniffer@^1.0.1, html-encoding-sniffer@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" | ||
|
@@ -23718,7 +23732,7 @@ semver@^5.5.1: | |
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" | ||
integrity sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw== | ||
|
||
semver@^5.6.0, semver@^5.7.0: | ||
semver@^5.6.0: | ||
version "5.7.0" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" | ||
integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== | ||
|