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

Develop #241

Merged
merged 19 commits into from
Jan 3, 2025
Merged

Develop #241

merged 19 commits into from
Jan 3, 2025

Conversation

bitbeckers
Copy link
Contributor

  • Fixes test suites
  • Restores coverage tests
  • Updates parsing of metadata.properties to be more flexibl
  • Update Supabase version
  • Set node version to 20 to be in syn with rest of stack

Fixes the mocked call by the RPC client to only use the MSW overrides
instead of injecting vi spies with 0 response.

This makes all current tests green 💚
Reduces the coverage threshold to pass the CI
The assertExists method failed as ENVIRONMENT was not set
adds local caching db url to gha ci
local db url in gha env declaraions
Sets the node version to 20 to be in sync with rest of stack. Node 22
was used for integration tests which shouldn't dictate the runtime
version.

To fix some build warnings from supabase, updated the supabase version
used in the GHA scripts and package.json
Basic happy flow testing of URI event parsing (metadata/allowlist). Also
tests for the successful parsing of a geoJSON attached to a metadata
object
When properties are attached to the metadata, first parse the object to
make it suitable for storage
…arsing

fix(storeMetadata): handling of properties field
The current parsing was to strict and rejected valid metadata sets. The
schema was updated to allow any data and allow for a partial properties
object since all fields are optional
Updated the URI event parser to log all issues on errors
Copy link

github-actions bot commented Jan 3, 2025

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 21.93% (🎯 20%) 1329 / 6060
🟢 Statements 21.93% (🎯 21%) 1329 / 6060
🟢 Functions 58.69% (🎯 58%) 27 / 46
🟢 Branches 44.6% (🎯 44%) 62 / 139
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/parsing/parseUriEvent.ts 93.66% 94.11% 100% 93.66% 66-74
src/storage/storeMetadata.ts 51.51% 33.33% 100% 51.51% 65-128
src/utils/metadata.zod.ts 100% 100% 100% 100%
Generated in workflow #194 for commit cf80f0c by the Vitest Coverage Report Action

@bitbeckers bitbeckers merged commit d562062 into main Jan 3, 2025
5 checks passed
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