Skip to main content

jsdom

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