David Rodenas PhD
1 min readNov 20, 2022

--

Thanks Michael! This article took longer than usual, also because I was also exploring the library (I often use a custom library which is not public).

The idea of this article is to give a first contact to anyone who is building on top of Jest. If you already know how to do TDD with Jest, you can switch quickly to BDD. The only limitations are the ones imposed by Jest itself. So, you can do all kind of weird async stuff XD, but it helps to focus it better, right.

About extending it, I am planning more stories about it. Because Gherkin is more powerful than it seems. In fact, using the same Feature file: I want to show how to implement a Redux code, how to implement an app with async communication to the backend, how to implement a service, and, with a technique similar to Pact, coordinate back and front with the same Feature file through snapshots, so not e2e tests are necessary.

That last one is the one that I am teaching to my students in the university, although I am using a custom language. Some day I may also write an article about them.

Thanks so much for the appreciation, it is nice to have the effort valued.

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.

Responses (1)