Closed
Bug 1510545
Opened 6 years ago
Closed 6 years ago
Allow to redirect require calls in browser loader to support mocks
Categories
(DevTools :: General, enhancement, P1)
DevTools
General
Tracking
(firefox66 fixed)
RESOLVED
FIXED
Firefox 66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Implementation bug for RFC https://github.com/devtools-html/rfcs/issues/55
The goal is to modify the browser-loader so that certain paths can return test objects instead of real modules.
The summary of the RFC on GitHub has some suggestions for the API.
Note that modifying the real loader might be more limited and difficult than expected [1], so we will focus on the browser loader here. Also as a reference, there are similar APIs in the codebase, used for extensions testing [2].
[1] https://github.com/devtools-html/rfcs/issues/55#issuecomment-441070414
[2] https://searchfox.org/mozilla-central/source/testing/modules/MockRegistrar.jsm
Assignee | ||
Updated•6 years ago
|
Priority: P3 → P2
Assignee | ||
Updated•6 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 1•6 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e6d61e23e61
Move mock support to browser-loader and shared test helper;r=ochameau,ladybenko
Comment 3•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
You need to log in
before you can comment on or make changes to this bug.
Description
•