noPromiseDelayAwaitDo not use Promise.delay(...).await() in tests. Advance deterministic schedulers or wait for the actual condition instead.task.waitsmall-rules/no-task-waitDisallow task.wait() and Promise.delay(...).await() calls.
Our unit tests were taking ten billion years to run because of task.wait() calls scattered everywhere,
each one actually sleeping. Promise.delay(...).await() does the same thing. Absolute nonsense in a test
suite.
Advance your scheduler or wait for the actual condition instead of sleeping and hoping. The game code can use it fine, this is really about keeping the test run from dragging.
noPromiseDelayAwaitDo not use Promise.delay(...).await() in tests. Advance deterministic schedulers or wait for the actual condition instead.noTaskWaitDo not use task.wait() in tests. Advance deterministic schedulers or wait for the actual condition instead.This rule does not accept options.
task.wait();task.delay(1, callback);