我有一个依赖于导出的const变量的文件。此变量设置为true,但如果需要,可以手动将其设置为false,以防止在下游服务请求时出现某些行为。我不确定如何在Jest中模拟const变量,以便我可以更改它的值以测试true和false条件.例子://constantsmoduleexportconstENABLED=true;//allowThroughmoduleimport{ENABLED}from'./constants';exportfunctionallowThrough(data){return(data&&ENABLED===true)}//jesttestimport{a