schlechtenburg/test/jsdom.ts
2024-10-08 09:15:26 +02:00

9 lines
201 B
TypeScript

import { JSDOM } from 'jsdom';
const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`);
export const window = dom.window;
export const document = dom.window.document;
export default dom;