-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix(jest-serializer): issue when value is null #103
fix(jest-serializer): issue when value is null #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, added a couple of comments.
.gitignore
Outdated
.vscode/ | ||
.history/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ignoring .history
folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a VScode plugin for code history which create an ".history" folder. And so to avoid to commit, we should ignore it.
If needed, I could revert it
nodeType === 6) // comment | ||
nodeType === 8 // comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With "document.createComment" (and according to MDN), the comment's nodeType is 8 (6 represents the ENTITY instruction for DTD)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
PR related to #102 issue
The PR contains a test file for index.js and then tests related to the "test" function.
The test function has evolved to:
Here a screenshot of the tests: