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

added support for esmock.strictest #172

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

iambumblehead
Copy link
Owner

@iambumblehead iambumblehead commented Oct 4, 2022

adds support for a stricter variant of esmock, per @gmahomarf #171

At the time this PR is created, here's what is added. esmock exports a new 'strictest' variant and when an imported module is not not mocked for the strictest import tree, esmock throws a runtime error like this,

"un-mocked moduleId: '~/root/child.js' (used by ~/root/parent.js)"

closes #171

@iambumblehead
Copy link
Owner Author

please review and give any opinion or thoughts @gmahomarf @tripodsan

@iambumblehead iambumblehead merged commit 7fde5d8 into master Oct 5, 2022
@iambumblehead iambumblehead deleted the add-support-for-esmock.strictest branch October 5, 2022 14:14
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.

Strict mocking isn't working as expected
3 participants