@happy-dom/global-registrator

v14.12.0
Use Happy DOM globally in a Node.js environment for testing.
jsdom happy dom webcomponents web component custom elements global and 3 more...

test

npm run test:react && npm run test:bun

watch

npm run compile && tsc -w --preserveWatchOutput

compile

npm run compile:esm && npm run compile:cjs

test:bun

bun test ./test/bun/Bun.test.js

test:debug

tsc --project ./test/react && node ../happy-dom/bin/change-file-extension.cjs --dir=./tmp --fromExt=.js --toExt=.cjs && node --inspect-brk ./tmp/react/React.test.cjs

test:react

rm -rf tmp && tsc --project ./test/react && node ../happy-dom/bin/change-file-extension.cjs --dir=./tmp --fromExt=.js --toExt=.cjs && node ./tmp/react/React.test.cjs

compile:cjs

rm -rf cjs && tsc --moduleResolution Node --module CommonJS --outDir cjs && npm run compile:change-cjs-file-extension

compile:esm

tsc

compile:change-cjs-file-extension

node ../happy-dom/bin/change-file-extension.cjs --dir=./cjs --fromExt=.js --toExt=.cjs
npm i @happy-dom/[email protected]

Metadata

  • MIT
  • >=16.0.0
  • David Ortner
  • released 5/29/2024

Downloads

Maintainers