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

Add tests for the require package and fix code #1203

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Add tests for the require package and fix code #1203

merged 1 commit into from
Feb 26, 2025

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Feb 4, 2025

This PR adds tests for the require package. For one test, we need an extension that has a dependency that fails to load due to an error in the dependency's code, so there is a new lib/error.js file that does that.

In RequireConfiguration.ts, lines 181-183 are restructured to avoid the ?. constructions (which didn't get individual coverage for each ?.). The other changes are to use ConfigurationType rather than explicit property names.

@dpvc dpvc requested a review from zorkow February 4, 2025 21:32
@dpvc dpvc added this to the v4.0 milestone Feb 4, 2025
Base automatically changed from update-test-framework to develop February 25, 2025 20:55
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit 7c8677a into develop Feb 26, 2025
@dpvc dpvc deleted the test-require branch February 26, 2025 23:16
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.

2 participants