-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[React@18] Improve console.error suppression in react-testing-library setup (#201142) #202600
[React@18] Improve console.error suppression in react-testing-library setup (#201142) #202600
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]
History
cc @kapral18 |
Starting backport for target branches: 8.x |
… setup (elastic#201142) (elastic#202600) In addition to changes introduced by elastic#201142 Reasoning: This pull request includes changes to the `packages/kbn-test/src/jest/setup/react_testing_library.js` file to improve internal error logging suppression from react-testing-library. In particular, [this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4) suppression logic has been migrated to avoid breaking devUX expectations. Tested against elastic#201142 code changes (cherry picked from commit 3a6d27a)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ibrary setup (#201142) (#202600) (#204398) # Backport This will backport the following commits from `main` to `8.x`: - [[React@18] Improve console.error suppression in react-testing-library setup (#201142) (#202600)](#202600) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Karen Grigoryan","email":"karen.grigoryan@elastic.co"},"sourceCommit":{"committedDate":"2024-12-16T13:41:10Z","message":"[React@18] Improve console.error suppression in react-testing-library setup (#201142) (#202600)\n\nIn addition to changes introduced by #201142\r\n\r\nReasoning:\r\n\r\nThis pull request includes changes to the\r\n`packages/kbn-test/src/jest/setup/react_testing_library.js` file to\r\nimprove internal error logging suppression from react-testing-library.\r\nIn particular,\r\n[this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4)\r\nsuppression logic has been migrated to avoid breaking devUX\r\nexpectations.\r\n\r\nTested against #201142 code\r\nchanges","sha":"3a6d27af37c8ac2cdf730d206bd941554e729b9b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","React@18"],"title":"[React@18] Improve console.error suppression in react-testing-library setup (#201142)","number":202600,"url":"https://github.com/elastic/kibana/pull/202600","mergeCommit":{"message":"[React@18] Improve console.error suppression in react-testing-library setup (#201142) (#202600)\n\nIn addition to changes introduced by #201142\r\n\r\nReasoning:\r\n\r\nThis pull request includes changes to the\r\n`packages/kbn-test/src/jest/setup/react_testing_library.js` file to\r\nimprove internal error logging suppression from react-testing-library.\r\nIn particular,\r\n[this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4)\r\nsuppression logic has been migrated to avoid breaking devUX\r\nexpectations.\r\n\r\nTested against #201142 code\r\nchanges","sha":"3a6d27af37c8ac2cdf730d206bd941554e729b9b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202600","number":202600,"mergeCommit":{"message":"[React@18] Improve console.error suppression in react-testing-library setup (#201142) (#202600)\n\nIn addition to changes introduced by #201142\r\n\r\nReasoning:\r\n\r\nThis pull request includes changes to the\r\n`packages/kbn-test/src/jest/setup/react_testing_library.js` file to\r\nimprove internal error logging suppression from react-testing-library.\r\nIn particular,\r\n[this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4)\r\nsuppression logic has been migrated to avoid breaking devUX\r\nexpectations.\r\n\r\nTested against #201142 code\r\nchanges","sha":"3a6d27af37c8ac2cdf730d206bd941554e729b9b"}}]}] BACKPORT--> Co-authored-by: Karen Grigoryan <karen.grigoryan@elastic.co>
… setup (elastic#201142) (elastic#202600) In addition to changes introduced by elastic#201142 Reasoning: This pull request includes changes to the `packages/kbn-test/src/jest/setup/react_testing_library.js` file to improve internal error logging suppression from react-testing-library. In particular, [this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4) suppression logic has been migrated to avoid breaking devUX expectations. Tested against elastic#201142 code changes
… setup (elastic#201142) (elastic#202600) In addition to changes introduced by elastic#201142 Reasoning: This pull request includes changes to the `packages/kbn-test/src/jest/setup/react_testing_library.js` file to improve internal error logging suppression from react-testing-library. In particular, [this](https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/core/console.ts#L1-L4) suppression logic has been migrated to avoid breaking devUX expectations. Tested against elastic#201142 code changes
In addition to changes introduced by #201142
Reasoning:
This pull request includes changes to the
packages/kbn-test/src/jest/setup/react_testing_library.js
file toimprove internal error logging suppression from react-testing-library. In particular, this suppression logic has been migrated to avoid breaking devUX expectations.
Tested against #201142 code changes