home.social

#jest — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #jest, aggregated by home.social.

fetched live
  1. 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 #jest

    Merci d'avance pour les #boosts et réponses 😊

  2. 🚨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? 💤
    howtotestfrontend.com/courses/ #HackerNews #Jest #Vitest #AsyncCourses #Boredom #HackerNews #ngated

  3. Как протестировать более 40 UI-компонентов за минуту: ускоряем скриншот-тесты

    Привет, Хабр! Меня зовут Антон, я фронтенд‑разработчик в Домклик. Наша команда отвечает за библиотеку «Продуктовых сниппетов» — те самые карточки недвижимости, которые вы видите в нашей поисковой выдаче. Проблема в том, что этих карточек у нас более 40 видов (сниппеты вторичной, первичной, загородной, краткосрочной недвижимости, каждый тип имеет несколько размеров под разные разрешения), и все они живут в одной монорепозиторной библиотеке на React 19 . Любая правка в общих стилях или глобальных дизайн-токенах, или элементарное обновление компонентов дизайн-системы превращалось в игру «Сапёр»: поправил отступ в одном типе сниппета — поехала вёрстка или поплыл паддинг в другом, о чём мы узнавали уже при тестировании релиза или, что хуже, от пользователей после релиза. Я расскажу, как мы внедрили полноценное визуальное регрессионное тестирование (Visual Regression Testing) на основе Storybook , Playwright и Jest , с какими трудностями столкнулись при стабилизации скриншотов и как заставили тесты работать стабильно.

    habr.com/ru/companies/domclick

    #playwright #storybook #visualregressiontesting #react #jest #screenshottesting #frontend

  4. 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

    #getfediHired

  5. A quotation from Horace

    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

  6. Вы неправильно тестируете асинхронный код: тест проходит раньше, чем выполняется проверка

    В статье разберём, как именно раннер решает, что тест прошёл, почему .then без return выполняется уже после теста, почему try/catch в async‑тесте — частый источник ложного зелёного, что не так с forEach и setTimeout внутри тестов и какие инструменты не дают тесту соврать. Примеры на Jest, но контракт у Mocha, vitest и прочих тот же.

    habr.com/ru/companies/otus/art

    #асинхронное_тестирование #автотесты #Jest #JavaScript #Promise #ложноположительные_тесты #unitтесты #тестраннер #APIтестирование

  7. 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. 58

    More about this quote: wist.info/johnson-samuel/20598…

    #quote #quotes #quotation #qotd #samueljohnson #expectations #humor #jest #joke #merriment #reaction #surprise

  8. 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:

    mastodon.social/@nityakrishna/

    #jest #life

  9. QA в CI/CD: как перестать гонять тесты руками и настроить это один раз

    Разбираю как выглядит нормальный QA-пайплайн в GitHub Actions: от линтинга до E2E тестов на Playwright. С рабочими конфигами, кэшированием и уведомлениями о падениях.

    habr.com/ru/articles/1021592/

    #GitHub_Actions #QA #автотесты #Playwright #Jest #DevOps #пайплайн #тестирование

  10. [Перевод] 37 советов и приемов по написанию качественных тестов для фронтенда

    Мне нравится писать тесты. Написание теста и последующее обновление кода для его прохождения — всегда увлекательный процесс. Но нет ничего хуже, чем выяснение того, что проверяют существующие тесты (раньше я сам часто был автором таких тестов). Представляю вашему вниманию мои советы по написанию высококачественных тестов для фронтенда.

    habr.com/ru/companies/timeweb/

    #javascript #js #testing #test #jest #vitest #timeweb_статьи_перевод #тестирование #тест #tdd

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

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

    habr.com/ru/articles/1015576/

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

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

    sitepoint.com/testing-nodejs-a

    #guides #testing #nodejs #apis #jest

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

  14. [Перевод] Ускорение крупномасштабной миграции тестов с помощью LLM

    Airbnb недавно завершила первую крупномасштабную миграцию кода под управлением LLM: мы обновили почти 3,5 тысячи файлов тестов React-компонентов, переведя их с Enzyme на React Testing Library (RTL). По первоначальным оценкам ручная работа заняла бы 1,5 года инженерного времени, но — используя сочетание передовых моделей и надёжной автоматизации — миграция завершилась всего за 6 недель. В этой статье я расскажу о сложностях, с которыми мы столкнулись при переходе с Enzyme на RTL, почему LLM отлично подходят для такого рода задач и как мы спроектировали инструменты миграции, чтобы запускать LLM-управляемую миграцию в масштабах всей кодовой базы.

    habr.com/ru/companies/otus/art

    #qa #миграция_тестов #react_testing_library #Jest #ретраи #покрытие_кода #автоматизация_миграций #LLM #TypeScript

  15. @zachleat

    Still cached. Still rocking the exploit.

    #jest download after 6pm eastern still delivering 64k of injected who-knows-what

  16. @zachleat

    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.