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
| 1 | // Gives `bun test` a DOM (window, document, customElements, CustomEvent, …). |
| 2 | import { mkdirSync } from "node:fs"; |
| 3 | import { GlobalRegistrator } from "@happy-dom/global-registrator"; |
| 4 | |
| 5 | GlobalRegistrator.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. |
| 9 | mkdirSync(`${import.meta.dir}/../.size-fixtures`, { recursive: true }); |