Running Quality Checks in your Monorepo

Share this video with your friends

Send Tweet

All of our applications and libraries have test and typecheck commands already written inside of them. We are able to run both the test and typecheck commands all at the same time as well.

This has a downside. They don’t run at the same time, it’s just one after the other. To make them run at the same time, we will implement concurrently again.

Ben Brown
~ 2 years ago

Your missing information in video 9 around vitest, the tests just kind of appear from nowhere

Alejandro Ñáñezinstructor
~ 2 years ago

@Ben, hey! I didn’t dig deep into how to setup tests in Vite, or in any of the other applications/libs as this course was not meant to be about testing and that’s a whole topic itself! But setting up Vitest shouldn’t be hard,

Here’s how I did it for the first iteration of this course https://github.com/alejandronanez/turborepo-egghead/blob/main/apps/blog/vite.config.ts

and here’s their official docs: https://vitest.dev/guide/

I can share the code from the course in a couple of weeks when I’m back from vacations. 👍

Ben Brown
~ 2 years ago

Perfect thank you!

Pedro Serapio
~ 2 years ago

Could be interesting to explain where all vitest stuff is coming from. Probably remake the video.