Skip to content

Add unit tests using jsdom - #63

Merged
adriaandotcom merged 4 commits into
v12from
codex/set-up-unit-tests-with-jsdom-and-mocha
May 29, 2025
Merged

adriaandotcom merged 4 commits into
v12from
codex/set-up-unit-tests-with-jsdom-and-mocha

Conversation

@adriaandotcom

Copy link
Copy Markdown
Collaborator

Summary

  • add test:unit script and jsdom dev dependency
  • document new unit test command in README
  • create test/unit/default.test.js with JSDOM setup

Testing

  • npm run test:unit (fails: Cannot find module 'jsdom')
  • npm run prettier
@adriaandotcom
adriaandotcom merged commit cda1d7d into v12 May 29, 2025
@adriaandotcom
adriaandotcom deleted the codex/set-up-unit-tests-with-jsdom-and-mocha branch May 29, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant