@happy-dom/global-registrator

v15.7.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

node -e "fs.rmSync('./tmp', { recursive: true, force: true })" && 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

node -e "fs.rmSync('./cjs', { recursive: true, force: true })" && 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
  • >=18.0.0
  • David Ortner
  • released 8/30/2024

Downloads

Maintainers