-
Notifications
You must be signed in to change notification settings - Fork 147
reference mismatch with esm imports and hapijs/lab #524
Comments
Thanks for digging in! Do you know off hand what the reference mismatch was with. |
I literally thought I had it ... and then it slipped away. I might have to check in the converted edit: I think I found the culprit. I think I was "double loading" |
here is a repo of the above "issue", although I'm not sure if it really is an issue - but it might help to uncover some underlying or hidden problem when https://github.com/dnalborczyk/esm-repros/tree/issue-524 when you run the tests with |
Cool. What version of Node are you testing on? |
sorry, latest, v10.7.0 btw, forgot to mention: it really is 1 test, the other "empty" test can easily be removed. just didn't wanna confuse you. edit: just noticed that the repo is using a mix of |
btw, the @jdalton don't spend any time on this if you see no value. it's clearly being used in a way it wasn't meant to be. |
This is an interesting issue in how we share and access state. It's a legit bug. In the deferred getter for the builtin entries I don't check if the entry has already been created (I assume if it had a deferred getter added that means it wasn't found in the cache). However, in this case the deferred getter is added in one place and before the getter is tripped (to create the entry) the entry is created in another. |
test debt 💰💰 Update: @dnalborczyk I'm adding a new label to issues that I have not added tests for. You can follow along with this query. We'll remove the label from issues as the test addition PRs are merged. |
@jdalton good idea! 👍 |
@dnalborczyk I fixed the query link. Some of them, like the Electron ones, aren't practical to test in an automated way but are good to be aware of. Update: v3.0.73 is released 🎉 |
Just for fun I pulled down and converted
hapi
to use es modules withesm
, and to my surprise, the test suite running withlab
converted to use es-modules worked out-of-the-box withesm
as well !! Really amazing!!! 😃the test suite produced one single bug. Not sure if that is a
lab
-specific issue.repro in the works ...
speaking of amazing: debugging the failed test case with ndb was short of amazing as well!! just worked out-of-the-box with
esm
!!The text was updated successfully, but these errors were encountered: