Tag

jest

  1. Replacing ts-jest with @swc/jest to cut CI test time in half

    How replacing ts-jest with @swc/jest cut the CI test execution time by half in a real project.

    • Jest
    • Testing
  2. I wish someone had taught me how to type-safe mock in TypeScript + Jest

    This article is for Day 5 of "Time Leap TypeScript — Things I Wish I Knew When I Started TypeScript." When I first started writing TypeScript, one thing I struggled with was how to write types for mocks when writing tests with Jest.

    • Jest
    • TypeScript
    • Testing