Skip to content

test: add coverage for shared utility helpers#74

Open
nightcityblade wants to merge 1 commit into
orekoapp:mainfrom
nightcityblade:fix/issue-68-utils-tests
Open

test: add coverage for shared utility helpers#74
nightcityblade wants to merge 1 commit into
orekoapp:mainfrom
nightcityblade:fix/issue-68-utils-tests

Conversation

@nightcityblade
Copy link
Copy Markdown

Description

Adds targeted unit tests for apps/web/lib/utils.ts, covering toNumber() and getBaseUrl() in addition to the existing formatter helpers.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

Related Issues

Fixes #68

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual testing

Test command:

  • pnpm --filter @oreko/web test -- __tests__/lib/utils.test.ts

Screenshots (if applicable)

N/A

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix/feature works
  • All tests pass locally
  • I have read the Contributing Guide

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.

Add unit tests for formatCurrency and formatRelativeTime in lib/utils

1 participant