RSSAmplifier

Pony Foo · Apr 22, 2019

Disguise Driven Testing: Jest Mocks In Depth — Part 2

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

Mocks are a great way of preventing AJAX calls in tests, but they can also help you isolate side effects and impurities that can create complicated tests. As you learned in Part 1 , mocks are a great way to handle external data or any data that is likely to change. Mocking external data will likely be your most common use case and for a good reason. You want your tests to stick as closely to your…

Read on ponyfoo.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.