@happy-dom/global-registrator

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

test

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

watch

npm run compile && tsc -w --preserveWatchOutput

compile

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

test:debug

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

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 3/20/2024

Downloads

Maintainers