Writing Tests for a TypeORM-based project with JEST - StreamCut

preview_player
Показать описание
We take a look at how to and how NOT to write tests for a project that is based on TypeORM with the help of JEST. This is a cut from a live stream, so apologies for the length. After watching the video, I promise you that you will have fun writing cool tests and you will never have to worry about mocking a single TypeORM function.

Links to the modules used for mocking Express requests and responses:

Thumbnail background photo:

----
Twitter: @mitkonikov
Рекомендации по теме
Комментарии
Автор

Could you make a video for testing rest apis with this stack? Typescript, TypeORM, MySQL, Express with dedicated test database

heyNepti
Автор

bro ...how can i do this on nest js with typeorm and postgres?...can you give an idea?

sijocherian
Автор

Great job!!! Share this repository with us if thats possible

tonygonzalez
Автор

how do you inject the connection name to the API controller where for say the default connection or any other connection is used?

DiamantineRakib
Автор

Cqn you please share the code with us for reference

TechnicalBabaji