Stub

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

About

My name is Max, also known as @mxkvl.

I am a software developer, currently working mostly with TypeScript, React and Node ecosystems.

I write a blog about topics that interest me most: programming languages in general, TypeScript, testing, writing and other great stuff.

Join the Mailing List