3/10 React, TypeScript, and TDD Tutorial: Testing

preview_player
Показать описание
Test-first development with Jest in the IDE.

Contents:
00:31 - Jest-specific tool window
01:35 - Jest with watcher
03:13 - Fail faster using tests and typing
05:14 - TDD layout

Learn more and join us:

Category: #webstorm, #webstormtutorial, #javascript
Рекомендации по теме
Комментарии
Автор

For anyone who happens on this later, the way the test structure works is that it checks the test file for the component. So for example if you're loading a new project and have made no changes, Jest will not see any changes and claim there are no tests. Editing app.tsx will then cause Jest to find the test properly.

Really enjoying these videos! They're a great look into TDD.

jabdulma
Автор

My dear, that's not TDD, TDD starts by writing the test, when fail, you should fix ( or write) the code to pass, anyway webstorm is a good tool for testing

ericlang