wafer2-node-sdk icon indicating copy to clipboard operation
wafer2-node-sdk copied to clipboard

Jest testEnvironment node throw error

Open smalike opened this issue 7 years ago • 0 comments

Jest testEnvironment node throw error

FAIL test/services/tmpl/user.test.js ● Test suite failed to run

ERR_INIT_SDK_LOST_CONFIG

  34 | // 初始化 SDK
  35 | // 将基础配置和 sdk.config 合并传入 SDK 并导出初始化完成的 SDK
> 36 | module.exports = qcloud(Object.assign({}, sdkConfig, configs));
     |                  ^
  37 |

  at init (node_modules/wafer-node-sdk/index.js:48:190)
  at Object.<anonymous> (src/qcloud.js:36:18)
  at Object.<anonymous> (src/services/tmpl/user.js:2:1)
  at Object.<anonymous> (test/services/tmpl/user.test.js:1:1)

smalike avatar Aug 23 '18 01:08 smalike