Body, Mind & Soul — API Reference
    Preparing search index...

    Variable _surveyOverridesConst

    _surveyOverrides: { resolveSurveyEnvironment: null } = ...

    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) => { ... };

    Type Declaration

    • resolveSurveyEnvironment: null