Skip to content

chore: suppress error/warning spam in unit tests (v2.1.2)#642

Merged
k-gerner merged 1 commit intomainfrom
fix-test-warnings-4717
Mar 4, 2026
Merged

chore: suppress error/warning spam in unit tests (v2.1.2)#642
k-gerner merged 1 commit intomainfrom
fix-test-warnings-4717

Conversation

@k-gerner
Copy link
Contributor

@k-gerner k-gerner commented Mar 3, 2026

Main purpose of this change is to clean up a lot of the log spam that was showing during unit test checks. The warnings/errors were not actionable and did not indicate an actual issue, so they were muted.

Additionally, added some listener cleanup to the SearchI18nextProvider as well as language fallback (was the cause of some of the warnings).

J=WAT-4717
TEST=auto

@k-gerner k-gerner requested a review from a team as a code owner March 3, 2026 18:36
@coveralls
Copy link

Coverage Status

coverage: 84.527% (+0.004%) from 84.523%
when pulling 47417b5 on fix-test-warnings-4717
into f96e0cf on main.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Current unit coverage is 88.86606409202957%
Current visual coverage is 69.74744760881246%
Current combined coverage is 91.9016921837228%

@k-gerner k-gerner merged commit f16bded into main Mar 4, 2026
22 checks passed
@k-gerner k-gerner deleted the fix-test-warnings-4717 branch March 4, 2026 20:35
@k-gerner k-gerner restored the fix-test-warnings-4717 branch March 4, 2026 20:39
k-gerner added a commit that referenced this pull request Mar 4, 2026
* feat: allow users to turn analytics on and off (v2.1.0) (#632)

* feat: allow users to turn analytics on and off (v2.1.0)

This PR adds a new property to the SearchAnalyticsConfig, which
can be used to start with analytics enabled or disabled by
default. Three new methods are added to the analytics object-
two to turn analytics on/off, and one to get the current enabled
status.

J=WAT-5404
TEST=auto, manual

Ran test site locally with debugging and buttons to turn
analytics on and off, saw expected behavior.

* Update various names to be in-line with pages code

* Automated update to repo's documentation from github action

* Add enableYextAnalytics function to window

* drop unneeded parens

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v2.1.0

* More accessbilities fixes for autocomplete results (#635)

* More accessbilities fixes for autocomplete results

Associate the visible label with the input via `label` + `htmlFor`, and wire `DropdownInput` with `inputId` and `aria-labelledby`.

Change the instructions container from `hidden` to `sr-only`, so `aria-describedby` references content that is actually exposed to screen readers.

J=WAT-5357
TEST=manual

tested with voice over enabled on test-site

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v2.1.1

* chore: suppress error/warning spam, fix key errors etc (#642)

* fix: point TypeScript output to dist directory (#644)

* suppress error/warning spam, fix key errors etc

* set ts output dir to dist

* retry logic to WCAG

* release: v2.1.2

---------

Co-authored-by: Fondryext <160865254+Fondryext@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jacob Fondriest <jfondriest@yext.com>
Co-authored-by: anguyen-yext2 <143001514+anguyen-yext2@users.noreply.github.com>
Co-authored-by: anguyen-yext2 <anguyen@yext.com>
Co-authored-by: Kyle Gerner <49618240+k-gerner@users.noreply.github.com>
Co-authored-by: Kyle Gerner <kgerner@yext.com>
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