tencentyun / wafer2-node-sdk

Wafer2 SDK for Node.js
Other
268 stars 59 forks source link

Jest testEnvironment node throw error #53

Open smalike opened 5 years ago

smalike commented 5 years ago

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)