Skip to content
Ákos Kőműves

Tag: unit testing

All the articles with the tag "unit testing".

  • How to test React apps with Vitest and Vite

    Updated: at 12:00 PM

    Set up Vitest and React Testing Library on Vite. Put the test block in vite.config.ts and load @testing-library/jest-dom/vitest. The button says Count is 0.

  • How to migrate from Mocha to Jest

    Updated: at 02:46 PM

    Move a Mocha suite to Jest with small edits instead of rewriting tests, including JSDOM via Jest's testEnvironment and mocha.opts.

  • Unit Testing Node.js apps and Stripe API integration

    Updated: at 03:05 PM

    Unit test a Node.js Stripe integration so a successful charge triggers the side effects your app expects. This tutorial was featured in Node Weekly.