Skip to content

Add tests for workers-types that run in CI #2766

@Cherry

Description

@Cherry

Over the last year or so, there have been regular regressions or issues with workers-types that would have been caught with some testing and/or better vetting.

workers-types is a huge cornerstone in the Cloudflare Workers development experience, with TypeScript being the recommended language across the docs, npm create cloudflare, etc. It would be really good to see this have a much more first-class experience and release/vetting process.

Examples:

There do appear to be some tests created in https://github.com/cloudflare/workerd/tree/main/types/test, but I'm not sure how often these run, or if they run in CI, or how much coverage they provide? It would be really nice if these ran regularly and perhaps even a diff of types changes were added into PRs so the types output can be analysed quickly and easily.

Metadata

Metadata

Labels

typesRelated to @cloudflare/workers-types

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions