Override for resolveSurveyEnvironment, used by tests (e.g. Quench suites)
to spy on / bypass survey resolution. Strict-mode ESM named exports are read-only
bindings, so a test cannot reassign resolveSurveyEnvironment on the imported
module namespace directly — this mutable object is the seam instead, mirroring
the _pickerOverrides convention in helpers/triggers.mjs.
Set the property to an async function to intercept calls; restore to null when
the test is done.
_surveyOverrides.resolveSurveyEnvironment = async (actor, tokenDoc) => { ... };
Override for resolveSurveyEnvironment, used by tests (e.g. Quench suites) to spy on / bypass survey resolution. Strict-mode ESM named exports are read-only bindings, so a test cannot reassign
resolveSurveyEnvironmenton the imported module namespace directly — this mutable object is the seam instead, mirroring the_pickerOverridesconvention inhelpers/triggers.mjs. Set the property to an async function to intercept calls; restore to null when the test is done. _surveyOverrides.resolveSurveyEnvironment = async (actor, tokenDoc) => { ... };