Skip to content

Refactor tests to use JSDOM correctly#584

Open
Rxpr0 wants to merge 1 commit intocodeschool-projects:masterfrom
Rxpr0:patch-1
Open

Refactor tests to use JSDOM correctly#584
Rxpr0 wants to merge 1 commit intocodeschool-projects:masterfrom
Rxpr0:patch-1

Conversation

@Rxpr0
Copy link

@Rxpr0 Rxpr0 commented Nov 30, 2025

new JSDOM() -->Uses current API (no deprecation warning)
before() hook -->Isolates setup logic; avoids global state
assert.exists() -->assert.isNotEmpty() | More semantic, readable, and precise
.trim() on text --> Prevents false positives from whitespace-only content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant