# Posts by tag 'javascript' — 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/javascript

*   Mar 30, 2026 · 8 min read

    ## [All About Jest, Timers, and Mocks](/blog/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.

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

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

*   Aug 30, 2024 · 3 min read

    ## [Using Promise.withResolvers in Node.js Tests](/blog/promise-with-resolvers-in-nodejs-tests)

    This article explores the use of \`Promise.withResolvers\` in Node.js tests, providing examples and refactoring techniques to handle nested tests and signal their completion effectively. It also discusses the limitations of the \`Promise.withResolvers\` API in different Node.js versions.

    *   [javascript](/tag/javascript)
    *   [promises](/tag/promises)
    *   [event emitter](/tag/event-emitter)

     [![](/_astro/nodejs-promise-with-resolvers.kmjXuem5_Z12T1md.jpg)](/blog/promise-with-resolvers-in-nodejs-tests)

*   Jun 30, 2023 · 6 min read

    ## [Avoid Fastify's reply.raw and reply.hijack Despite Being A Powerful HTTP Streams Tool](/blog/avoid-fastify-reply-raw-and-reply-hijack-despite-being-a-powerful-http-streams-tool)

    How to harness the power of streams in Fastify web applications without resorting to raw HTTP replies via reply.raw and reply.hijack().

    *   [fastify](/tag/fastify)
    *   [streams](/tag/streams)
    *   [nodejs](/tag/nodejs)
    *   [javascript](/tag/javascript)

     [![](/_astro/fastify-avoid-reply-hijack-blog-post-cover.CU0nCCO0_25hLjd.png)](/blog/avoid-fastify-reply-raw-and-reply-hijack-despite-being-a-powerful-http-streams-tool)

*   Jan 26, 2019 · 6 min read

    ## [Open Source From Heaven, Modules From Hell](/blog/2019-01-26)

    How do you find events to attend or speak at? I often get asked that and in this article I'll share the resources I use for CFP application and public speaking at conferences.

    *   [nodejs](/tag/nodejs)
    *   [javascript](/tag/javascript)

     [![](/_astro/photo-1551600854-b0d4f3f09bc6.BScNXmhf_Z2nDag2.jpg)](/blog/2019-01-26)

*   Jul 3, 2014 · 2 min read

    ## [MEAN.io v0.4 released – this is how you stay relevant](/blog/2014-07-03)

    Getting started with MEAN.io JavaScript & Node.js framework by keeping up with the git branch of development

    *   [meanio](/tag/meanio)
    *   [javascript](/tag/javascript)
    *   [nodejs](/tag/nodejs)

     [![](/_astro/photo-1468956398224-6d6f66e22c35.BePqp3CW_Zj88Tk.jpg)](/blog/2014-07-03)
