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

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

Dependents (1)

Package Sidebar

Install

npm i @tramvai/test-jsdom

Weekly Downloads

62

Version

3.40.43

License

Apache-2.0

Unpacked Size

1.89 kB

Total Files

8

Last publish

Collaborators

  • meskill
  • super_oleg
  • tinkoffbank