我目前正在开发一个使用node和express.js的应用编程接口。对于测试和代码覆盖率,我使用Jest,但我有一个问题:如何覆盖依赖于节点环境的条件语句?例如: switch (config.env) { // Connect to Dev DB case "test":// Connect to Test DB
brea
fCache[idxF][idxCb]=fVal;TypeError: Cannot set property '0' of undefinedtest('ap over single CPS function', t => { const cpsNew= ap(cb => cb(x => x*2))(cpsFun)
cpsNe