Skip to content

feat: enhance type assertions in level1-assertions and update tsconfig for vitest#114

Merged
esgn merged 1 commit into
masterfrom
fix-108
May 5, 2026
Merged

feat: enhance type assertions in level1-assertions and update tsconfig for vitest#114
esgn merged 1 commit into
masterfrom
fix-108

Conversation

@esgn
Copy link
Copy Markdown
Member

@esgn esgn commented May 5, 2026

This pull request focuses on improving the robustness of test assertions and simplifying the test configuration. The most notable changes are enhanced type checking in test helper functions and a minor update to the TypeScript test configuration.

Test assertion improvements:

  • Added explicit array type checks in expectNonEmptyResults and expectFeatureCollectionWithFeatures to throw clear errors if the expected arrays are missing or of the wrong type, improving reliability and debuggability of tests.

Test configuration update:

  • Updated tsconfig.test.json to use the "vitest" type instead of "vitest/globals" and removed the unnecessary inclusion of the src directory from the test build, streamlining the test setup.

@esgn esgn merged commit 99f252c into master May 5, 2026
3 checks passed
@esgn esgn deleted the fix-108 branch May 5, 2026 13:33
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.

1 participant