Introduction

This week, I embark on a journey of Testing, which is one of the interesting aspects of Programming. Sometimes you will think you’ve got everything covered, but no, there are lots of loopholes than you think. So, for this Testing, I went with Vitest.

Why Vitest?

Automated testing was the focus for this lab, so I needed a framework that matched the TypeScript-first nature of the project. I compared Jest and Vitest, and ultimately went with Vitest (docs) because:

  • It runs tests directly against modern JS/TS without extra transpilation glue.
  • Watch mode and focused test runs are built-in (vitest --watch, vitest run --filter ...).
  • Coverage via the @vitest/coverage-istanbul plugin is a single flag away.
  • The CLI feels famil…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help