Ah, I see that clearAllMocks clears module mocks created using jest.mock(...), while restoreAllMocks do nothing for them. This is a good change, but we should only call clearAllMocks where strictly necessary, which as far as I can tell includes readline.test.js and snap-config.test.js.
Ah, I see that
clearAllMocks
clears module mocks created usingjest.mock(...)
, whilerestoreAllMocks
do nothing for them. This is a good change, but we should only callclearAllMocks
where strictly necessary, which as far as I can tell includesreadline.test.js
andsnap-config.test.js
.