Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(loader): make sure loaded status is only set on loader hook #80

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

Nkmol
Copy link
Contributor

@Nkmol Nkmol commented Nov 26, 2022

Make sure the isLoaded state is explicitly set through the NodeJS loader life-cycle, instead of through global/implicit imports of the file. This makes sure the state is only set when the file is loaded through a NodeJS loader.

To not worry about unloaded/loading states, I simply separated the loader tests (MJS and JS) through two different teenytest processes.

fixes #77

@searls searls requested a review from giltayar November 26, 2022 14:12
lib/quibble.mjs Outdated Show resolved Hide resolved
@giltayar
Copy link
Contributor

LGTM. Thanks!

@giltayar giltayar merged commit 36c9312 into testdouble:main Nov 28, 2022
@Nkmol Nkmol deleted the fiix-isloaderloaded-for-mjs branch November 28, 2022 09:26
@searls
Copy link
Member

searls commented Nov 28, 2022

Landed in 0.6.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(bug): isLoaderLoaded() is always true
3 participants