Testing
-
-
How to fake time in a Postgres database
Mocking or freezing time when testing your application? Ruby and JavaScript make it easy … until your database is involved. Here's a way to time travel in Postgres! -
-
How environment variables make your Ruby test suite flaky
Environment variables can help manage config in any application. But they can also make Ruby test suites flaky. Learn why this happens and how to fix it. -
-
-
-
-
Testing ESM with Mocha and testdouble.js
Mocha unit tests and mocking with native ESM, and the journey it took to get there -