Atomic Object Show Nav
Close Menu
< Blog Home
We're Hiring
Atomic Object
Services
Portfolio
Team
Culture
Contact
Atomic Object Atomic Object
Services
Portfolio
Team
Culture
We're Hiring
Blog
Contact
Atomic Object
Services
Portfolio
Team
Culture
We're Hiring
Blog
Contact
← Back to Blog Home

sinon

TypeScript

Mocking TypeScript Modules with Sinon

We use Sinon to mock Typescript modules by using mockModule to create a function that can mock the given module. This is done at the outer-most scope of our test suite so that this
Web Apps

Mocking in JavaScript Unit Tests Using Sinon.JS

With mocks for dependencies inside functions, unit tests will be resilient to a changing codebase. And functions with mocks can be developed without a chain of dependencies.
Web Apps

Never Mix Promises and Callbacks in NodeJS

The moral of the story is, don’t call callbacks from inside promises in NodeJS. They will swallow your exceptions unexpectedly.
Web Apps

Bye-Bye, Sinon – Hello, testdouble

A review of testdouble.js, a new alternative to Sinon as a test mocking library in JavaScript.
Web Apps

Speeding Up Your JavaScript Test Suite

I just went through the practice of speeding up a large JavaScript test suite for my project. Here are some of the culprits I found and how I fixed them.

Want to see what Atomic can do?

Check out some of our work

Atomic's Portfolio

Atomic is a software design + development consultancy.

© 2023 Atomic Object LLC
Explore
  • Careers
  • Diversity
  • Resources
  • Atomic Blog
Offices
  • Grand Rapids
  • Ann Arbor
  • Chicago
  • Raleigh-Durham
Details
  • Contact
  • Media
  • Privacy Policy
Certified B Corporation