@tramvai/test-jsdom
TypeScript icon, indicating that this package has built-in type declarations

3.40.44 • Public • Published

Tramvai test jest

Set of helpers for testing in jsdom environment

Installation

npm i --save-dev @tramvai/test-jsdom

Api

waitRaf

Wait for execution of requestAnimationFrame callback

import { waitRaf } from '@tramvai/test-jsdom';

describe('test', () => {
  it('test', async () => {
    // some code with raf usage

    await waitRaf();
  });
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @tramvai/test-jsdom

    Weekly Downloads

    164

    Version

    3.40.44

    License

    Apache-2.0

    Unpacked Size

    1.89 kB

    Total Files

    8

    Last publish

    Collaborators

    • meskill
    • super_oleg
    • tinkoffbank