Test your Fastify REST API With Node Tap

  Рет қаралды 6,948

TomDoesTech

TomDoesTech

Күн бұрын

Пікірлер: 21
@stevereid636
@stevereid636 2 жыл бұрын
Great tutorial! Just what I’ve been looking for
@TomDoesTech
@TomDoesTech 2 жыл бұрын
Glad it was helpful!
@teerapatprommarak2070
@teerapatprommarak2070 2 жыл бұрын
Thank you Tom, this is really useful!
@josephospina5827
@josephospina5827 2 жыл бұрын
If you use a declaration types, u need to use TS_NODE_FILES=true in the test script cuz ts-node dont recognize easy the declartions types
@MirzaMaulanapositivejutsu
@MirzaMaulanapositivejutsu Жыл бұрын
Such a great tutorial, especially for someone like me who just got into javascript and typescript. But I've got some problem when running the test files, sometime it runs successfully and sometime it got fails.
@yasinnabi
@yasinnabi 2 жыл бұрын
This is one of the best channel I have Subbed ! thank you for sharing such a nice videos. a fellow creator....
@TomDoesTech
@TomDoesTech 2 жыл бұрын
Thanks for the sub!
@sunilgautam71
@sunilgautam71 2 жыл бұрын
I'm waiting for a series of Design Patterns with TS.
@ahmedaz6917
@ahmedaz6917 2 жыл бұрын
If we want an object to inherit from another object, the super() method should precede the constructor function or should follow the constructor function
@TomDoesTech
@TomDoesTech 2 жыл бұрын
okay?
@АндрейГусев-с6ц
@АндрейГусев-с6ц Жыл бұрын
Greate tutorial. But it could be more simple if use Jest, supertest and mock DB in docker from official prisma docs.
@TomDoesTech
@TomDoesTech Жыл бұрын
If you think that would be simpler, you should use that stuff. However, you're not going to think it's simple when you run into some weird problems
@tucoalbuquerque
@tucoalbuquerque Жыл бұрын
How did you made it use the .env.test database url ?
@VasuRangpariya
@VasuRangpariya 6 ай бұрын
How to pass authToken header for protected API ? and why we need to buildServer on every test is this the real scenario test cases ?
@TomDoesTech
@TomDoesTech 6 ай бұрын
You pass the token in the Authorization header. You need builder server for every time because you need an instance of the server to test against. You could have a global one if you wanted I guess, but I like to make tests as independant as possible
@RakhaRandhikatama
@RakhaRandhikatama 8 ай бұрын
im using ts-alias, and im getting error importing using "@", can anyone help me
@ssss9725
@ssss9725 2 жыл бұрын
Why you don't use t.mock() function included in tap?
@TomDoesTech
@TomDoesTech 2 жыл бұрын
I can't remember exactly, I think I couldn't get it to work with TS
@Mikeforu
@Mikeforu Жыл бұрын
Hi m getting one issue environment variable not found: Database_Url when i run yarn dev command. pls reply
@TomDoesTech
@TomDoesTech Жыл бұрын
Did you define the variable?
@euanmorgann
@euanmorgann Жыл бұрын
I ran into an issue with the test script "TSError: ⨯ Unable to compile TypeScript". Just incase anybody has the same issue I was able to fix it by adding "ts-node": { "files": true } Into my tsconfig.json
Build a RESTful API with Fastify, Prisma & TypeScript
1:21:35
TomDoesTech
Рет қаралды 62 М.
Testing Express REST API With Jest & Supertest
55:46
TomDoesTech
Рет қаралды 121 М.
Worst flight ever
00:55
Adam W
Рет қаралды 6 МЛН
Fastify Crash Course | Node.js Framework
39:43
Traversy Media
Рет қаралды 142 М.
Fastify Course 🚀 The Performant Node.js Web Framework
36:30
Build a REST API with Node.js, Express, TypeScript, MongoDB & Zod
2:09:19
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 95 М.
What Is Fastify?
7:34
Syntax
Рет қаралды 17 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 895 М.