testdouble / quibble

Makes it easy to replace require'd dependencies.
94 stars 25 forks source link

add listMockedModules #103

Closed giltayar closed 1 year ago

giltayar commented 1 year ago

This was requested in order to (as a good use case) troubleshoot whether testdouble really did mock or not.

Returns both CJS and ESM mocked files.

Note that it returns the full path of the mocked file, no matter what the specifier mocked was, and it returns them as file: URLs and not file paths. This is true for both CJS and ESM mocked files

giltayar commented 1 year ago

@searls if you'd like to go over the PR, I'll give you a few days, otherwise I'll just merge

searls commented 1 year ago

If it works for you, it works for me!On Oct 19, 2023, at 04:24, Gil Tayar @.***> wrote: @searls if you'd like to go over the PR, I'll give you a few days, otherwise I'll just merge

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>