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

chore: add target assert to queryFixture #3564

Merged
merged 14 commits into from
Jul 29, 2022

Conversation

dbowling
Copy link
Contributor

  • Adds an assert to the axe.testUtils.queryFixture() to guide developers in usage of the fixture helper.
  • Refactor to help VS Code pick up correct signatures
  • Add JSDoc
  • Whitespace fixes

pulling the anon func out to a var helps the type engine resolve it
These were only used for type specifications
convert queryFixture to fixtureSetup
@dbowling dbowling self-assigned this Jul 26, 2022
@dbowling dbowling marked this pull request as ready for review July 27, 2022 03:39
@dbowling dbowling requested a review from a team as a code owner July 27, 2022 03:39
test/testutils.js Outdated Show resolved Hide resolved
test/testutils.js Outdated Show resolved Hide resolved
test/testutils.js Outdated Show resolved Hide resolved
test/commons/text/form-control-value.js Outdated Show resolved Hide resolved
test/checks/navigation/heading-order.js Outdated Show resolved Hide resolved
test/checks/navigation/heading-order.js Outdated Show resolved Hide resolved
test/commons/text/native-text-alternative.js Outdated Show resolved Hide resolved
dbowling and others added 8 commits July 27, 2022 09:04
Prevented the JSDoc from working on this method.
Suggestion from Steven. This doesn’t appear to show fully in VSCode, but is a more accurate description of code intent.
suggestion from Steven.
adding a #target would be more appropriate rather than trying to save off fixtureSetup which returns the entire virtual node tree
Suggestion from Steve.
Co-authored-by: Steven Lambert <[email protected]>
@dbowling dbowling requested a review from straker July 27, 2022 18:41
VS Code does a better job on its own
@dbowling dbowling dismissed straker’s stale review July 28, 2022 15:47

Adressed changes.

@dbowling dbowling removed their assignment Jul 28, 2022
@dbowling dbowling merged commit 7843ff9 into develop Jul 29, 2022
@dbowling dbowling deleted the chore/test-utils-queryfixture-target-assert branch July 29, 2022 15:29
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.

2 participants