Open
Description
It would be great if td.reset()
optionally accepted a list of modules to reset, like:
td.reset(); // nuclear option → reset everything
td.reset('module-a.js');
td.reset(
'module-a.js',
'module-b.js',
);
The problem this solves is avoiding erroneously blowing away global mocks: a particular test may need to mock a specific module; after that test runs, only the module(s) it itself mocked should be reset.
Metadata
Metadata
Assignees
Labels
No labels