Skip to content

Wild Wild Wolf

Developer. Because Superhero is not an official job title.

Menu

Month: November 2019

TypeScript, preact, and unistore

TypeScript, preact, and unistore

When I tried to use unistore instead of redux in one of my pet projects, I discovered that its TypeScript typings are not very accurate. In this post I try to come up with better typings for unistore’s connect() function.

wwa November 15, 2019January 13, 2021 Uncategorized No Comments Read more

Jest: How to Mock window.location.href

Jest: How to Mock window.location.href

There may be a situation where you need to mock methods or properties on window.location in Jest. However, because of peculiarities of jsdom, this could be challenging. In this post there is one of the possible solutions to this problem.

wwa November 13, 2019January 13, 2021 NodeJS No Comments Read more

Recent Posts

  • GitHub Actions: How to Avoid Running the Same Workflow Multiple Times
  • How to Expose Kubernetes Dashboard Over HTTPS
  • How to Create an OpenTelemetry Instrumentation Plugin
  • A Secure Way to Run npm ci
  • Alpine 3.11 and Varnish Reload Issue

Recent Comments

    Archives

    • January 2021
    • December 2020
    • July 2020
    • June 2020
    • May 2020
    • February 2020
    • December 2019
    • November 2019
    • October 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • March 2019
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018

    Categories

    • DevOps
    • NodeJS
    • Random Thoughts
    • Server Administration
    • Uncategorized
    • WordPress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2021 Wild Wild Wolf. Powered by WordPress. Theme: Spacious by ThemeGrill.