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

fix(core/validation-tooltip): prevent assignment/reading on null element #1001

Merged
merged 4 commits into from
Jan 15, 2024

Conversation

jul-lam
Copy link
Collaborator

@jul-lam jul-lam commented Dec 14, 2023

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (yarn build) was run locally and any changes were pushed
  • Unit tests (yarn test) were run locally and passed
  • Visual Regression Tests (yarn visual-regression) were run locally and passed
  • Linting (npm lint) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bug fix
  • Feature
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

GitHub Issue Number: 944 | 945

What is the new behavior?

The Jest tests no longer fail.

Does this introduce a breaking change?

  • Yes
  • No

Testing

Manually tested behavior in a separate Gatsby application with a Jest setup.

Other information

Unit tests have not been added yet, as Jest is required but currently unavailable. Jest may be incorporated in a separate PR.

Closes #944
Closes #945

@jul-lam jul-lam self-assigned this Dec 14, 2023
@jul-lam jul-lam mentioned this pull request Dec 21, 2023
14 tasks
@danielleroux danielleroux added this to the 2.1.0 milestone Dec 21, 2023
@jul-lam jul-lam changed the title fix(core/validation-tooltip): prevent style assignment on null element fix(core/validation-tooltip): prevent assignment/reading on/off null element Jan 9, 2024
@jul-lam jul-lam changed the title fix(core/validation-tooltip): prevent assignment/reading on/off null element fix(core/validation-tooltip): prevent assignment/reading on/of null element Jan 9, 2024
@jul-lam jul-lam changed the title fix(core/validation-tooltip): prevent assignment/reading on/of null element fix(core/validation-tooltip): prevent assignment/reading on null element Jan 9, 2024
@danielleroux danielleroux merged commit 813b882 into main Jan 15, 2024
6 checks passed
@danielleroux danielleroux deleted the fix/jest-cannot-read-property-of-null branch January 15, 2024 14:19
@danielleroux danielleroux added the pull request affects patch version The pull request affects only patch version label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull request affects patch version The pull request affects only patch version
Projects
None yet
3 participants