Companies Home Search Profile

Mocking Node.js with Sinon 8

Focused View

Nate Taylor

1:25:50

13 View
  • 01.01.Course Overview.mp4
    01:12
  • 02.01.Spying on Functions.mp4
    04:02
  • 02.02.What Is a Spy.mp4
    05:00
  • 02.03.Getting Set Up.mp4
    06:01
  • 02.04.Creating a Spy.mp4
    03:57
  • 02.05.Using a Spy.mp4
    05:05
  • 02.06.Restoring Spies.mp4
    04:24
  • 02.07.Why Use Spies.mp4
    04:23
  • 03.01.Replacing Functions with Stubs.mp4
    02:19
  • 03.02.Creating a Stub.mp4
    03:17
  • 03.03.Stubbing out Exceptions.mp4
    02:42
  • 03.04.Stub Specific Calls.mp4
    04:57
  • 03.05.Stubbing Asynchronous Functions.mp4
    05:21
  • 03.06.Other Stub Functionality.mp4
    02:29
  • 04.01.Simplifying with Fakes.mp4
    02:29
  • 04.02.Replacing a Spy with a Fake.mp4
    04:23
  • 04.03.Replacing a Stub with a Fake.mp4
    04:45
  • 04.04.How Are Fakes Different.mp4
    03:06
  • 05.01.Using Mocks to Isolate Code.mp4
    02:31
  • 05.02.Creating a Mock.mp4
    02:17
  • 05.03.Mocking Specific Calls.mp4
    02:45
  • 05.04.Verifying a Function Wasnt Called.mp4
    02:20
  • 05.05.Other Mocking Functions.mp4
    03:28
  • 05.06.Comparing Test Doubles.mp4
    02:37
  • Description


    Creating unit tests is a skill, just like any other part of software development. This course will teach you how to effectively isolate your unit tests with spies, stubs, mocks, and fakes.

    What You'll Learn?


      Creating unit tests that are independent of external systems can be difficult and intimidating. In this course, Mocking Node.js with Sinon, you’ll learn to use the Sinon library for mocking external dependencies while testing your code. First, you’ll explore why mocking matters. Next, you’ll discover the differences between mocks, stubs, spies, and fakes. Finally, you’ll learn how to use a mock in your unit tests. When you’re finished with this course, you’ll have the skills and knowledge of using mocks needed to write unit tests isolated from external dependencies.

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Nate's first program was written in QBasic on an 8086 clone his dad built. Since then he's written applications in C++, .NET, and Node.js. He spent the first 12 years of his career writing Windows applications before transitioning to write applications for the web. Regardless of the language or type of application he's written, he strives for writing clean, testable, and maintainable code. In addition to his day job as a developer, Nate also enjoys speaking at various conferences. He will typically be found talking about topics such as TDD, clean code, or professionalism.
    Pluralsight, LLC is an American privately held online education company that offers a variety of video training courses for software developers, IT administrators, and creative professionals through its website. Founded in 2004 by Aaron Skonnard, Keith Brown, Fritz Onion, and Bill Williams, the company has its headquarters in Farmington, Utah. As of July 2018, it uses more than 1,400 subject-matter experts as authors, and offers more than 7,000 courses in its catalog. Since first moving its courses online in 2007, the company has expanded, developing a full enterprise platform, and adding skills assessment modules.
    • language english
    • Training sessions 24
    • duration 1:25:50
    • level average
    • Release Date 2023/12/06