• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

I Like Kill Nerds

The blog of Australian Front End / Aurelia Javascript Developer & brewing aficionado Dwayne Charrington // Aurelia.io Core Team member.

  • Home
  • Aurelia 2
  • Aurelia 1
  • About
  • Aurelia 2 Consulting/Freelance Work

Jest

How To Mock uuid In Jest

Jest · April 25, 2020

When it comes to mocking dependencies in Jest, it couldn't be easier. You can create an actual mock module that gets loaded in place of the …

Continue Reading

Testing Event Listeners In Jest (Without Using A Library)

Jest · February 19, 2020

I love using Jest to unit test my Aurelia applications. Sadly, one of the most popular options for mocking event listeners and simulating …

Continue Reading

Quick & Easy Way To Reset Mocks & Spies In Jest

Jest · December 21, 2019

When working with mocks and spies in Jest, it is quite easy to fall into a trap where they become stale (especially in cases where pure …

Continue Reading

How To Easily Mock Moment.js In Jest

Jest · December 4, 2019

Recently whilst writing some unit tests in Jest, I had to test some code that took ISO date strings and converted them to formatted date …

Continue Reading

Jest Not Finding Tests In Travis CI? You Might Be Ignoring The Build Folder

Jest · October 20, 2019

Recently, I encountered an issue in Travis CI and my Aurelia application which uses Jest for the tests suite. I erroneously copied some …

Continue Reading

Primary Sidebar

Popular

  • How To Get The Hash of A File In Node.js
  • Testing Event Listeners In Jest (Without Using A Library)
  • Which Neural DSP Archetype Plugins Should You Buy?
  • NBN Box Installed Inside of Garage, Where Do You Put The Modem?
  • Smoke Detector Randomly Goes Off Early Hours of The Morning
  • How to Use Neural DSP Archetype Plugins With the Quad Cortex
  • Wild Natural Deodorant Review
  • How to Fast Launch Microsoft Flight Simulator 2020 (decrease game loading time)
  • How To Install Eufy Security Cameras Without Drilling or Using Screws
  • Perfectly Smoked Steak On A Charcoal BBQ Using Indirect Heat

Recent Comments

  • Thebe on How to Remove the My Sites Menu From the WordPress Admin Bar
  • Maccas worker jn the 2000s on Dear McDonald’s: bring back the Warm Cookie Sundae, you cowards
  • Anamika Singh on Testing Event Listeners In Jest (Without Using A Library)
  • Stefan on A List of WordPress Gutenberg Core Blocks
  • pandammonium on A List of WordPress Gutenberg Core Blocks

Copyright © 2022 · Dwayne Charrington · Log in