SMell
ES Module mocking workaround
Just to update people this is now solved, here is the issue tracking: https://github.com/uki00a/fresh-testing-library/issues/62
18 replies
ES Module mocking workaround
I used fn then mocked from the ‘fresh-testing-library’ initially and neither worked for me I then installed the jest global library it uses and tried to use that instead but because it’s not using jest as the runner with jest config it fails.
Happy to provide more examples if needed
18 replies
ES Module mocking workaround
Sorry for late response gents, been ill and have a presentation to write up. I will install the
fresh-testing-library
and see if its fn
can successfully mock out ESModules, if so that would be great but if not then I will explore other ways.
I question I haven't asked but maybe one has looked into it is using Jest in a Deno project. Probably because it doesn't follow spec its hard to run using Deno? Or am I mistaken?18 replies