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

3.40.53 • 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();
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i @tramvai/test-jsdom

Weekly Downloads

1,456

Version

3.40.53

License

Apache-2.0

Unpacked Size

1.89 kB

Total Files

8

Last publish

Collaborators

  • meskill
  • super_oleg
  • tinkoffbank