• 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

  • Testing Event Listeners In Jest (Without Using A Library)
  • How To Get The Hash of A File In Node.js
  • Thoughts on the Flipper Zero
  • Waiting for an Element to Exist With JavaScript
  • How To Paginate An Array In Javascript
  • How to Use Neural DSP Archetype Plugins With the Quad Cortex
  • How To Mock uuid In Jest
  • How To Get Last 4 Digits of A Credit Card Number in Javascript
  • How To Decompile And Compile Android APK's On A Mac Using Apktool
  • NBN Box Installed Inside of Garage, Where Do You Put The Modem?

Recent Comments

  • Kevmeister68 on Start-Ups and Companies That Embrace Work From Anywhere Will Be More Likely to Survive the Coming Recession in 2023
  • kevmeister68 on What Would Get People Back Into the Office?
  • Dwayne on PHP Will Not Die
  • Dwayne on How to Create a Blockchain With TypeScript
  • kevmeister68 on PHP Will Not Die

Copyright © 2023 · Dwayne Charrington · Log in