#jest — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jest, aggregated by home.social.
-
C'est la reprise du travail après les vacances et je me casse le nez sur des tests unitaires.... 🥴
Je cherche des ressources qui expliquerait la philosophie des tests unitaires, pourquoi et comment ça fonctionne comme ça.
Il y a pleins de tutoriel sur _comment faire_ mais rien sur _comment ça marche_ et j'ai bien besoin de ça pour comprendre.
Est ce que vous auriez ça dans vos liens ?
En particulier si c'est orienté #TestsUnitaires avec #JavaScript et #jestMerci d'avance pour les #boosts et réponses 😊
-
@vitest killed Jest
As per the [first graph], we can see :
* the number of downloads of Jest are stable
* the number of downloads of Vitest is increasing fastlyThe [second graph] shows the relative decline of Jest compared to Vitest
#JS #JavaScript #TS #TypeScript
#Jest #Vitest
#NPM #Node
#TanStack #Stats #Stat #Chart
#Test #Testing #UnitTest #UnitTests #UnitTesting
#Dev #Code -
🚨BREAKING: Yet another groundbreaking revelation! 🙄 Learn the "basics" of #testing with Jest/Vitest in a browser-based course that promises to teach you the same old stuff you've seen a thousand times—now with added async confusion! 🎉 Who knew free could come with a side of boredom? 💤
https://howtotestfrontend.com/courses/jest-vitest-fundamentals #HackerNews #Jest #Vitest #AsyncCourses #Boredom #HackerNews #ngated -
Jest/Vitest interactive course (runs in the browser)
https://howtotestfrontend.com/courses/jest-vitest-fundamentals
#HackerNews #Jest #Vitest #interactive #course #browser #testing #frontend #development
-
Как протестировать более 40 UI-компонентов за минуту: ускоряем скриншот-тесты
Привет, Хабр! Меня зовут Антон, я фронтенд‑разработчик в Домклик. Наша команда отвечает за библиотеку «Продуктовых сниппетов» — те самые карточки недвижимости, которые вы видите в нашей поисковой выдаче. Проблема в том, что этих карточек у нас более 40 видов (сниппеты вторичной, первичной, загородной, краткосрочной недвижимости, каждый тип имеет несколько размеров под разные разрешения), и все они живут в одной монорепозиторной библиотеке на React 19 . Любая правка в общих стилях или глобальных дизайн-токенах, или элементарное обновление компонентов дизайн-системы превращалось в игру «Сапёр»: поправил отступ в одном типе сниппета — поехала вёрстка или поплыл паддинг в другом, о чём мы узнавали уже при тестировании релиза или, что хуже, от пользователей после релиза. Я расскажу, как мы внедрили полноценное визуальное регрессионное тестирование (Visual Regression Testing) на основе Storybook , Playwright и Jest , с какими трудностями столкнулись при стабилизации скриншотов и как заставили тесты работать стабильно.
https://habr.com/ru/companies/domclick/articles/1050424/
#playwright #storybook #visualregressiontesting #react #jest #screenshottesting #frontend
-
I'm still out there
Web developer, strong database & front-end frameworks (#react #vue #angular ), mostly #php but I can work with apis in most languages given a little time to bone up
Based in #japan , great for Asia or Aus/NZ time zones, US West Coast next best, but can work with Europe if it's not too much in-person meeting stuff all the time
Oh, and did I mention testing?
#phpunit #playwright #jest #codeception - and a firm belief that these are vital
-
For ridicule shall frequently prevail,
And cut the knot, when graver reasons fail.
[Ridiculum acri
Fortius et melius magnas plerumque secat res.]Horace (65–8 BC) Roman poet, satirist, soldier, politician [Quintus Horatius Flaccus]
Satires [Saturae, Sermones], Book 1, # 10 “Nempe incomposito,” l. 14ff (1.10.14-15) (35 BC) [tr. Francis (1747)]More about (and translations of) this quote: wist.info/horace/1955/
#quote #quotes #quotation #qotd #horace #argument #comedy #debate #derision #humor #impact #jest #jibe #jokes #laughter #mockery #rhetoric #ridicule #satire #scorn #wit #witticism #writing #persuasion #influence
-
Вы неправильно тестируете асинхронный код: тест проходит раньше, чем выполняется проверка
В статье разберём, как именно раннер решает, что тест прошёл, почему .then без return выполняется уже после теста, почему try/catch в async‑тесте — частый источник ложного зелёного, что не так с forEach и setTimeout внутри тестов и какие инструменты не дают тесту соврать. Примеры на Jest, но контракт у Mocha, vitest и прочих тот же.
https://habr.com/ru/companies/otus/articles/1036208/
#асинхронное_тестирование #автотесты #Jest #JavaScript #Promise #ложноположительные_тесты #unitтесты #тестраннер #APIтестирование
-
A quotation from Samuel Johnson
Merriment is always the effect of a sudden impression. The jest which is expected is already destroyed.
Samuel Johnson (1709-1784) English writer, lexicographer, critic
Essay (1759-05-26), The Idler, No. 58More about this quote: wist.info/johnson-samuel/20598…
#quote #quotes #quotation #qotd #samueljohnson #expectations #humor #jest #joke #merriment #reaction #surprise
-
Narasimha is the fourth incarnation of the #Hindu god Wishnu. For reasons, rage is a key trait of Narasimha, especially early in the incarnation. #trivia
Yesterday (Thursday) was "Narasimha Jayanthi", the birthday of Narasimha. The occasion is observed with pomp in Waisnavite locations across #India.
I of course attended the Narasimha Jayanthi festivities in #Udupi. Of the many people I encountered, two were rather rude and directed some anger at me, which I thought I didn't deserve. Still, I handled one of them right, which is by ignoring them; but I think I responded a wee bit in kind to the second. 😳
Needless to say, those two interactions left a bitter taste in me, but I later consoled myself that maybe it was just that Narasimha cast his shadow on some people that day, what with him having just been born. 😀
PS: Anyway, enjoy this presentation of Udupi Krishna on the special day:
-
CW: Adult joke
Thanks, white boy!
... but my dick ain't THAT big. -
Making Our Frontend Unit Tests Much Faster With @ swc/jest, by (not on Mastodon or Bluesky):
https://tech.small-improvements.com/making-our-frontend-unit-tests-much-faster-with-swc-jest/
-
QA в CI/CD: как перестать гонять тесты руками и настроить это один раз
Разбираю как выглядит нормальный QA-пайплайн в GitHub Actions: от линтинга до E2E тестов на Playwright. С рабочими конфигами, кэшированием и уведомлениями о падениях.
https://habr.com/ru/articles/1021592/
#GitHub_Actions #QA #автотесты #Playwright #Jest #DevOps #пайплайн #тестирование
-
[Перевод] 37 советов и приемов по написанию качественных тестов для фронтенда
Мне нравится писать тесты. Написание теста и последующее обновление кода для его прохождения — всегда увлекательный процесс. Но нет ничего хуже, чем выяснение того, что проверяют существующие тесты (раньше я сам часто был автором таких тестов). Представляю вашему вниманию мои советы по написанию высококачественных тестов для фронтенда.
https://habr.com/ru/companies/timeweb/articles/1006680/
#javascript #js #testing #test #jest #vitest #timeweb_статьи_перевод #тестирование #тест #tdd
-
Как я тестирую API: чеклист и подходы, и автоматизация
Открыл Postman, потыкал эндпоинты, всё ответило 200 — вряд-ли хорошее тестирование Разбираю что на самом деле нужно проверять в API, показываю примеры на Postman и Jest, и даю чеклист который можно взять и использовать прямо сейчас.
https://habr.com/ru/articles/1015576/
#API_тестирование #Postman #Jest #QA #автотесты #REST_API #чеклист #тесткейсы #автоматизация_тестирования #axios
-
Testing Node.js APIs With Jest: A Frontend Developer’s Guide to Backend Testing, by (not on Mastodon or Bluesky):
-
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/
-
#jest is fun to work with, but its mock objects aren't as intuitive as the ones of other languages' testing libs.
#javascript -
📣 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
-
[Перевод] Ускорение крупномасштабной миграции тестов с помощью LLM
Airbnb недавно завершила первую крупномасштабную миграцию кода под управлением LLM: мы обновили почти 3,5 тысячи файлов тестов React-компонентов, переведя их с Enzyme на React Testing Library (RTL). По первоначальным оценкам ручная работа заняла бы 1,5 года инженерного времени, но — используя сочетание передовых моделей и надёжной автоматизации — миграция завершилась всего за 6 недель. В этой статье я расскажу о сложностях, с которыми мы столкнулись при переходе с Enzyme на RTL, почему LLM отлично подходят для такого рода задач и как мы спроектировали инструменты миграции, чтобы запускать LLM-управляемую миграцию в масштабах всей кодовой базы.
https://habr.com/ru/companies/otus/articles/947298/
#qa #миграция_тестов #react_testing_library #Jest #ретраи #покрытие_кода #автоматизация_миграций #LLM #TypeScript
-
Still cached. Still rocking the exploit.
#jest download after 6pm eastern still delivering 64k of injected who-knows-what
-
I think we're quickly heading to a point where it will be a requirement.
Ppl doing strategic forks (fork, contribute, but republish with provenance) will help drive this. Ppl with bigger budgets have to drive this for bigger packages.
I cant believe packages like #jest have the dep supply chain they have. That's major.
We gotta get better.