Closed
Bug 2018699
Opened 7 months ago
Closed 2 months ago
Migrate simple unit tests to Jest/RTL
Categories
(Firefox :: New Tab Page, enhancement)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
155 Branch
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: maxx, Assigned: thecount)
References
Details
Attachments
(1 file, 2 obsolete files)
Migrate the following tests (No Redux interactions required)
- ErrorBoundary.test.jsx
- FluentOrText.test.jsx
- MoreRecommendations.test.jsx
- ModalOverlay.test.jsx
- DownloadModalToggle.test.jsx
- ExternalComponentWrapper.test.jsx
- ComponentPerfTimer.test.jsx
| Reporter | ||
Comment 1•7 months ago
|
||
Migrates 7 unit tests that have no Redux interactions from Enzyme/Karma/Chai
to React Testing Library/Jest:
- ErrorBoundary.test.jsx
- FluentOrText.test.jsx
- MoreRecommendations.test.jsx
- ModalOverlay.test.jsx
- DownloadModalToggle.test.jsx
- ExternalComponentWrapper.test.jsx
- ComponentPerfTimer.test.jsx
New RTL tests are created under test/unit/jest/content-src/components/.
The original Enzyme files are marked with @enzyme-to-rtl comments pointing
to their RTL equivalents.
Updated•6 months ago
|
Attachment #9547302 -
Attachment is obsolete: true
| Assignee | ||
Comment 2•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → sdowne
Attachment #9618705 -
Attachment description: WIP: Bug 2018699 - Migrate simple newtab unit tests from Enzyme/Karma to Jest/RTL. → Bug 2018699 - Migrate simple newtab unit tests from Enzyme/Karma to Jest/RTL.
Status: NEW → ASSIGNED
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Attachment #9618898 -
Attachment description: WIP: Bug 2018699 - Migrate simple unit tests to Jest/RTL → WIP: Bug 2018699 - Migrate simple unit tests to Jest/RTL. r?thecount
Updated•2 months ago
|
Attachment #9618898 -
Attachment description: WIP: Bug 2018699 - Migrate simple unit tests to Jest/RTL. r?thecount → WIP: Bug 2018699 - Migrate simple unit tests to Jest/RTL. r=#home-newtab-reviewers
Updated•2 months ago
|
Attachment #9618898 -
Attachment description: WIP: Bug 2018699 - Migrate simple unit tests to Jest/RTL. r=#home-newtab-reviewers → Bug 2018699 - Migrate simple unit tests to Jest/RTL. r=#home-newtab-reviewers
Pushed by rhamoui@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/e01da02fcdb9
https://hg.mozilla.org/integration/autoland/rev/1339ecf1b192
Migrate simple unit tests to Jest/RTL. r=thecount
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Updated•2 months ago
|
Attachment #9618705 -
Attachment is obsolete: true
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in
before you can comment on or make changes to this bug.
Description
•