vailabel/vailabel-studio
Auf GitHub ansehentest: Add unit tests for a utility in apps/studio/src/shared/lib
Open
#244 geöffnet am 19. Juni 2026
good first issuehacktoberfest
Repository-Metriken
- Stars
- (62 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
Summary Increase coverage and give newcomers a gentle intro to the Jest setup by testing a small, pure utility function.
Where
apps/studio/src/shared/lib(pick a pure function: formatter, geometry helper, id generator).- Test config:
jest.config.tsat repo root.
Steps
- Branch:
git checkout -b test/shared-lib-util. - Choose a small pure function with no side effects.
- Create a colocated
*.test.ts; cover the happy path plus 1–2 edge cases. - Run
yarn testand confirm it passes. - Commit
test: add unit tests for <function>and open a PR.
Acceptance criteria
- New test file passes under
yarn test. - At least 3 assertions covering normal + edge cases.
Good first issue — comment here if you'd like to take it.