Stub

  • Contains specific rules like:
    • if parameters are x1, x2 then result is y
      • (2, 3) => [5]
      • () => { params: [] }
  • An example of stub in JestJS is:
    • jest.fn()

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 💬