Hacker0x01 / react-datepicker

A simple and reusable datepicker component for React
https://reactdatepicker.com/
MIT License
8.06k stars 2.24k forks source link

[typescript-migration] test-utils.js #4840

Closed ryantanrk closed 4 months ago

ryantanrk commented 4 months ago

name: [typescript-migration] test-utils.js about: Create a pull request to improve this repository title: [typescript-migration] test-utils.js labels: "" assignees: ""

Description

Linked issue: #4700

Changes Converts test_utils.js into TypeScript and replaces more key strings with the KeyType enum in TS test files

Contribution checklist

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 96.55172% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 96.75%. Comparing base (17d3963) to head (d6578b4).

Files Patch % Lines
src/week_number.tsx 0.00% 1 Missing :warning:
test/test_utils.ts 97.91% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4840 +/- ## ========================================== + Coverage 96.67% 96.75% +0.08% ========================================== Files 28 28 Lines 2977 2991 +14 Branches 1285 1284 -1 ========================================== + Hits 2878 2894 +16 + Misses 99 97 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

martijnrusschen commented 4 months ago

Thanks for migrating and cleaning up the code!