# Posts by tag 'testing' — Liran Tal

AI security researcher, open-source maintainer, and author. Explore Liran Tal’s blog, research papers, developer tools, books, and conference talks.

Canonical: https://lirantal.com/tag/testing

[![](/_astro/jest-timers-and-mocks.D3IestBi_95dmV.png)

Mar 30, 2026 8 min read

### All About Jest, Timers, and Mocks

How to use Jest fake timers, advance time safely in tests, and pair timer control with mocks and spies without flaky or misleading assertions.](/blog/jest-timers-and-mocks)

*   [jest](/tag/jest)
*   [testing](/tag/testing)
*   [javascript](/tag/javascript)

 [![](/_astro/2022-12-29-01-10-57.CsLxZTLU_Z1fQ0TD.png)

Jan 15, 2023 6 min read

### Advanced usage patterns for taking page element screenshots with Playwright

In this post, I will show you some advanced usage patterns for working with Playwright in order to take a screenshot of a specific element and modify the contents of the image, either before taking the screenshot or after, using image preprocessing tools.](/blog/advanced-usage-patterns-for-taking-page-element-screenshots-with-playwright)

*   [playwright](/tag/playwright)
*   [testing](/tag/testing)
*   [screenshots](/tag/screenshots)
*   [crawling](/tag/crawling)
