tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues
9 lignes · 451 octetsBrut · Historique
1// Gives `bun test` a DOM (window, document, customElements, CustomEvent, …).
2import { mkdirSync } from "node:fs";
3import { GlobalRegistrator } from "@happy-dom/global-registrator";
4
5GlobalRegistrator.register();
6
7// Build artifacts that tests write and then import. Created here, in the preload:
8// Bun's resolver cannot see a module inside a directory created after startup.
9mkdirSync(`${import.meta.dir}/../.size-fixtures`, { recursive: true });