fake DOM for RE:DOM
npm install nodom
const { Document } = require('nodom');
global.document = new Document();
const { el, mount } = require('redom');
mount(document.body, el('h1', 'Hello world!'));
console.log(document.body.outerHTML); // <body><h1>Hello world!</h1></body>