Skip to content

Convert frontend test files to TypeScript #4838

Open

Description

Problem

Currently many of our frontend tests are written in JavaScript. This leaves us vulnerable to inaccurate tests that could give false confidence in our code due to potentially-subtle bugs relating to inaccurate types.

Description

Convert these files to TypeScript, and make any changes necessary in our actual implementation code if errors are revealed in the type-safe tests.

If a typed test reveals significant refactorings necessary, please extract it into its own PR.

Alternatives

Additional context

This work was previously prevented due to some poor type coverage of Jest internals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    📅 To Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions