Gil Tayar

Results 129 comments of Gil Tayar

There's no lack of browser automation tools, although not sure this is needed. I would go with a simpler snapshot test (i.e. save the HTML baseline file, and always compare...

You're right! Once you `replaceEsm` then all imports are "new" ones and you don't get the old module, _even if you didn't mock it_! This is because the code lazy!...

Small quibble (pun intended 😉): `td.replaceEsm` is async, so in your repro, it should be: ```js await td.replaceEsm('./empty-module.js', undefined); ```

@connorjclark before discussing the issues you raised, I tried replicating your problem in a test, and couldn't reproduce it. This is because when resolving a module that is not mocked...

Oh! That part was yours! I was wondering how it happened that in some cases `resolve()` gets called multiple times in the same function.:-) OK, looking at it again and...

@AlexZ-343 would love to get a reproduction repository so that I can debug it this week! It would make my life _much_ easier.