Skip to content

chore: use TSTyche for type testing#6525

Closed
mrazauskas wants to merge 11 commits into
fastify:mainfrom
mrazauskas:use-tstyche
Closed

chore: use TSTyche for type testing#6525
mrazauskas wants to merge 11 commits into
fastify:mainfrom
mrazauskas:use-tstyche

Conversation

@mrazauskas

Copy link
Copy Markdown
Contributor

Close #6033

Checklist

@github-actions github-actions Bot added typescript TypeScript related github actions Github actions related labels Feb 22, 2026
Puppo added a commit to Puppo/fastify-constraints that referenced this pull request May 14, 2026
- Replace tsd with tstyche for type testing
- Update test:types script to use tstyche
- Convert initialization.test-d.ts to initialization.tst.ts
- Update index.d.ts to use ES module export syntax

PR of Reference:
  - fastify/fastify#6532
  - fastify/fastify#6525
@Tony133

Tony133 commented May 17, 2026

Copy link
Copy Markdown
Member

@mrazauskas as soon as you have a moment, could you resolve the conflicts in this PR so we can proceed with removing tsd ? or, if you prefer, create a new pull request whichever is more convenient for you.

@mrazauskas

Copy link
Copy Markdown
Contributor Author

Split into #6726 and #6727.

@mrazauskas mrazauskas closed this May 18, 2026
@mrazauskas mrazauskas deleted the use-tstyche branch May 18, 2026 15:27
Puppo added a commit to Puppo/fastify-constraints that referenced this pull request May 18, 2026
- Replace tsd with tstyche for type testing
- Update test:types script to use tstyche
- Convert initialization.test-d.ts to initialization.tst.ts
- Update index.d.ts to use ES module export syntax

PR of Reference:
  - fastify/fastify#6532
  - fastify/fastify#6525
Puppo added a commit to Puppo/fastify-constraints that referenced this pull request May 18, 2026
- Replace tsd with tstyche for type testing
- Update test:types script to use tstyche
- Convert initialization.test-d.ts to initialization.tst.ts
- Update index.d.ts to use ES module export syntax

PR of Reference:
  - fastify/fastify#6532
  - fastify/fastify#6525
simoneb pushed a commit to nearform/fastify-constraints that referenced this pull request May 18, 2026
* refactor(types): migrate from tsd to tstyche

- Replace tsd with tstyche for type testing
- Update test:types script to use tstyche
- Convert initialization.test-d.ts to initialization.tst.ts
- Update index.d.ts to use ES module export syntax

PR of Reference:
  - fastify/fastify#6532
  - fastify/fastify#6525

* refactor(types): add toBeCallableWith assertion for app.register

* refactor(types): add route-level constraints assertion

* refactor(types): add child.get constraints assertion

* Apply suggestions from code review

Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>

* Apply suggestions from code review

Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>

* Update test/types/initialization.tst.ts

* fix(scripts): update test command to run all test files

* refactor(types): update type definitions and test initialization

---------

Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github actions Github actions related typescript TypeScript related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should we move out from tsd?

2 participants