Uncategorized

  • Recording a real response, including the ugly ones

    Hand-written fixtures encode what you believe the provider returns, and providers return things nobody believes. The 502 with an HTML body is the one that reaches production, because…

  • templateLock all, and the editor who will ask you to unlock it

    templateLock on a container is inherited by everything inside it, which locks the structure and leaves the text editable. Locking the structure and leaving the content free is…

  • A laptop profile is a hypothesis, not a finding

    Four differences between a development machine and production can each invert the conclusion a profile suggests. The dataset difference is the one that inverts rather than scales: an…

  • –platform, and the image that ran on nothing

    An image built on an Apple Silicon laptop is arm64 and the servers are amd64, and the resulting failure is an exec format error with no other explanation.…

  • Two services sharing a database are one service

    Independent deployment is the property that makes a service a service, and a shared schema removes it regardless of how the code is organised. The usual path to…

  • iterable is not countable, and count() is a fatal

    iterable accepts an array or a Traversable, and only one of those can be counted without consuming it. A generator has no length until it has finished, which…

  • Promise.any resolves on the first success, not the first settle

    Promise.race settles on the first result including a rejection, and Promise.any waits for the first success. race is right for a timeout, where a rejection genuinely should win,…

  • An OpenAPI document that is the test suite’s source of truth

    3.1 lands in February with real JSON Schema. Generating docs from code fixes half the problem; making the document the contract fixes the other half.

  • Redis 6.2 GETDEL, for the one-shot token

    Reading a key and deleting it was two commands and a race, and 6.2 made it one. The race matters for anything single-use — a password reset token,…

  • A data provider runs before setUp

    Providers are collected during test discovery, long before any setUp has run, so a provider touching the application container or the database fails. String keys on the provider…