Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Apr 5, 2023

We don't currently have test coverage for our TypeScript definitions, which means that we won't notice if something's broken until we try to use the library in a TypeScript project.

This PR updates our unit tests to run with ts-jest, and fixes all of the problems in our type definitions that surfaced.

mattt added 3 commits April 5, 2023 05:39
Inline option types

Fix method signatures

Define Page<T> type
Fix and refactor unit tests
@mattt mattt changed the title Run tests using TypeScript Run unit tests with TypeScript Apr 5, 2023
@mattt mattt enabled auto-merge (squash) April 5, 2023 12:52
@mattt mattt requested a review from erbridge April 5, 2023 12:52
Copy link
Contributor

@erbridge erbridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not reviewed this thoroughly, but in principle it seems like a good idea.

@mattt mattt requested a review from erbridge April 5, 2023 17:32
@mattt mattt merged commit 328e37f into main Apr 5, 2023
@mattt mattt deleted the mattt/ts-jest branch April 5, 2023 19:03
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.

3 participants