schlechtenburg/test/jsdom.ts

9 lines
201 B
TypeScript
Raw Normal View History

2024-10-08 07:15:26 +00:00
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;