Как я тестирую API: чеклист и подходы, и автоматизация

Открыл Postman, потыкал эндпоинты, всё ответило 200 — вряд-ли хорошее тестирование Разбираю что на самом деле нужно проверять в API, показываю примеры на Postman и Jest, и даю чеклист который можно взять и использовать прямо сейчас.

https://habr.com/ru/articles/1015576/

#API_тестирование #Postman #Jest #QA #автотесты #REST_API #чеклист #тесткейсы #автоматизация_тестирования #axios

Как я тестирую API: чеклист и подходы, и автоматизация

API-тестирование — это та часть QA, которую часто делают на глаз. Открыл Postman, потыкал пару эндпоинтов, всё ответило 200 — окей, работает. Но это не тестирование, это проверка что сервер вообще...

Хабр

Ok, before I rewrite all the tests (a major undertaking) I tried some more today, and with this configuration I managed to get it to work. ts-jest did not work.

I have this in package.json:
"type": "commonjs",

#jest #TypeScript #commonjs

The #JavaScript testing framework #jest somehow breaks built-in classes so that `x instanceof Error` always gives false. (Same for Array.) This completely breaks error handling when running tests! `Error.isError(x)` seems to work, but #TypeScript doesn't know about it (for NodeJS 24 LTS, even though it has that method)! I'm hack-fixing it with this TypeScript declaration:

Testing Node.js APIs With Jest: A Frontend Developer’s Guide to Backend Testing, by (not on Mastodon or Bluesky):

https://www.sitepoint.com/testing-nodejs-apis-with-jest/

#guides #testing #nodejs #apis #jest

Testing Node.js APIs with Jest: A Frontend Developer's Guide to Backend Testing

Learn how to test your Express API using Jest and Supertest — covering routes, database mocking, authentication, and CI/CD integration in under 10 minutes.

jest szansa, że dożyję. #latyfundium #jest plan

Vitest vs. Jest 2026: The Migration Guide With Real Benchmarks, by (not on Mastodon or Bluesky):

https://www.sitepoint.com/vitest-vs-jest-2026-migration-benchmark/

#guides #migrating #vitest #jest #comparisons

Vitest vs Jest 2026: Performance Benchmarks & Migration Guide

Jest is showing its age. Vitest is 10x faster with native ESM support. Here's the migration path, gotchas, and performance data from a 50k test suite.

#jest is fun to work with, but its mock objects aren't as intuitive as the ones of other languages' testing libs.
#javascript

Time for the yearly blog post, let's see how many I can do in 2026 💀

https://kaeruct.github.io/posts/2026/01/24/our-ci-doesnt-do-weekends/ #ci #jest #nodejs #testing #vitest

Our CI Doesn't Do Weekends

I think a codebase can tell you a lot about the people that work on it. From this specific example in particular, I felt very reassured that the team takes work

Pejibaye Blog

📣 Just Blogged: Unit #Testing Setup for #SitecoreAI Content SDK Applications!
Learn #Jest ➡️Configuration ➡️Component Testing ➡️Coverage Reports

📌 Read now: https://www.amitk.net/blog/sitecoreai-contentsdk-component-testing/

#Sitecore #SitecoreMVP #SUGCON #AvanadeDoWhatMatters #SitecoreLearning #NextJS #HeadlessCMS