Arrange in unit test

  • Preparing to acting of tests
    • All errors in this phase are not actually errors / failures of tests
    • In terms of JestJS, most likely, beforeEach or beforeAll methods
    • Sometimes we need to mock import/require (in JavaScript)
      • It can be done by means of framework like JestJS
      • It can be done by means of independent library like Rewire
    • Here you should write stubs, mocks, etc (Test Doubles)

Subscribe to the newsletter

Get a once-per-week email with my latest content. By subscribing to this newsletter you will also be the first to receive last updates of my eBooks and courses.

0 members

Comments 💬