Migrate lib/ and content-src/lib/ Enzyme unit tests
Categories
(Firefox :: New Tab Page, enhancement)
Tracking
()
People
(Reporter: maxx, Unassigned)
References
Details
Attachments
(2 obsolete files)
Remove the following Enzyme/Mocha/Karma unit test files:
content-src/lib/:
- test/unit/content-src/lib/detect-user-session-start.test.js
- test/unit/content-src/lib/init-store.test.js
- test/unit/content-src/lib/perf-service.test.js
- test/unit/content-src/lib/screenshot-utils.test.js
- test/unit/content-src/lib/selectLayoutRender.test.js
- test/unit/content-src/lib/utils.test.jsx
lib/:
- test/unit/lib/AboutPreferences.test.js
- test/unit/lib/ActivityStream.test.js
- test/unit/lib/ActivityStreamMessageChannel.test.js
- test/unit/lib/ActivityStreamPrefs.test.js
- test/unit/lib/DiscoveryStreamFeed.test.js
- test/unit/lib/DownloadsManager.test.js
- test/unit/lib/FaviconFeed.test.js
- test/unit/lib/InferredModel/FeatureModel.test.js
- test/unit/lib/NewTabInit.test.js
- test/unit/lib/PersistentCache.test.js
- test/unit/lib/PrefsFeed.test.js
- test/unit/lib/Screenshots.test.js
- test/unit/lib/SectionsManager.test.js
- test/unit/lib/SiteClassifier.test.js
- test/unit/lib/SystemTickFeed.test.js
- test/unit/lib/UTEventReporting.test.js
Blocks: 2018692
| Reporter | ||
Comment 1•7 months ago
|
||
Converts 19 test files across lib/ and content-src/lib/ to use Jest assertions and mocks in place of Chai/Sinon/GlobalOverrider.
Extends jest-setup.mjs with additional Firefox globals needed by lib/ modules (Preferences, Logger, LinksCache, NewTabContentPing, PageThumbs, FileUtils, EventEmitter, getCharPref/setCharPref). DiscoveryStreamFeed and PrefsFeed will follow in a separate commit.
| Reporter | ||
Comment 2•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•3 months ago
|
Comment 3•3 months ago
|
||
This is being broken up into smaller tickets.
Specifically these 7:
https://bugzilla.mozilla.org/show_bug.cgi?id=2062299
https://bugzilla.mozilla.org/show_bug.cgi?id=2062300
https://bugzilla.mozilla.org/show_bug.cgi?id=2062301
https://bugzilla.mozilla.org/show_bug.cgi?id=2062302
https://bugzilla.mozilla.org/show_bug.cgi?id=2062303
https://bugzilla.mozilla.org/show_bug.cgi?id=2062304
https://bugzilla.mozilla.org/show_bug.cgi?id=2062307
Updated•3 months ago
|
Description
•