Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(isElement): Implement isElement #839

Merged
merged 1 commit into from
Nov 23, 2024
Merged

Conversation

filipsobol
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Nov 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 8:44am

Comment on lines +13 to +19
/*
it( 'should return `true` for elements', () => {
if ( document ) {
expect( isElement( body ) ).toBe( true );
}
} );
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this test and the one at the bottom of the file require either access to DOM or at least a DOM mocking library like happy-dom or jsdom.

Consider using Vitest's Browser Mode, which without isolation is still really fast.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.78%. Comparing base (3c29e70) to head (6ffbafe).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #839      +/-   ##
==========================================
+ Coverage   99.74%   99.78%   +0.03%     
==========================================
  Files         309      310       +1     
  Lines        2787     2789       +2     
  Branches      829      830       +1     
==========================================
+ Hits         2780     2783       +3     
+ Misses          7        6       -1     
---- 🚨 Try these New Features:

Copy link
Collaborator

@raon0211 raon0211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work!

@raon0211 raon0211 merged commit 7210c5d into toss:main Nov 23, 2024
8 checks passed
@filipsobol filipsobol deleted the add-isElement branch November 23, 2024 13:02
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.

3 participants