UtteranceQueueTestUtils¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/utterance-queue/blob/main/js/UtteranceQueueTestUtils.ts for the most up-to-date information.
Overview¶
A set of utility functions that are useful for all utterance-queue tests.
@author Jesse Greenberg (PhET Interactive Simulations)
Class UtteranceQueueTestUtils¶
Static Methods¶
timeout( ms : number ) : Promise<unknown>¶
Helper es6 promise timeout function. @param ms
beforeEachTimingWorkarounds() : Promise<void>¶
Workarounds that need to be done before each test to let the Utterance Queue finish an timed operation before the next test. This is not needed when running manually, but I believe will fix problems when running on CT/Puppeteer where resource availablility, running headless, or other factors may cause differences.
Source Code¶
See the source for UtteranceQueueTestUtils.ts in the utterance-queue repository.