RobinTail / express-zod-api

A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.
https://ez.robintail.cz
MIT License
619 stars 30 forks source link

Improving `testEndpoint` #1800

Closed RobinTail closed 4 months ago

RobinTail commented 4 months ago

Based on discussion #1799

During the time of testEndpoint exists I've got 3 feedback from users struggling to set it up correctly or being confused by the way it's organized. I'd like to make it easier to use due to that fact.

I'm going to change the way testEndpont() works. Instead of using mocking functions from testing frameworks, I will use the library that mocks request and response completely.

coveralls-official[bot] commented 4 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 9180d4819c5443293c42a5404c4086aef1a58e90 on impr-testing-mocks into 2c683377ad9b5bc1250382e0818eef72dc32df2f on prep-v20.

RobinTail commented 4 months ago

This should be breaking and address v20

RobinTail commented 4 months ago

Changed the base

RobinTail commented 4 months ago

Need to update Readme and Changelog