@happy-dom/global-registrator

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

lint

eslint --ignore-path .gitignore --max-warnings 0 .

test

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

tsc && tsc --module CommonJS --outDir cjs && npm run change-cjs-file-extension

lint:fix

eslint --ignore-path .gitignore --max-warnings 0 --fix .

test:debug

tsc --project ./test && node --inspect-brk ./tmp/react/React.test.js

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
  • Whatever
  • David Ortner
  • released 9/18/2023

Downloads

Maintainers