THESENIORDEV NEWSLETTER

write tests as easy as you write code

Do you know one thing developers I work with don’t know enough of? Is not a fancy JavaScript framework. Nor some crazy design pattern. It is… Testing. Boring, right? With everyone so busy trying to…

Dragos Nedelcu
Dragos Nedelcu

Jan 17, 2023 · 1 MIN READ

  1. Arrange - this is where we set up our tests and pull in everything we need to run the tests. Think of it as preparing the scene before the show.
  2. Act - that’s where we make the call to the SUT (System Under Test) which can be a little function or a module.
  3. Assert - this is where the magic happens! Here we check that after the Act is finished the outputs match what we expected. If they do, the test passed, if not the test failed.

Join 450+ engineers already on the path

Join a community of like-minded devs fast-tracking to Senior level.

+345 more engineers

from San Francisco to London to Hong Kong

Watch The Free Senior Training