Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest testEnvironment node throw error #53

Open
smalike opened this issue Aug 23, 2018 · 0 comments
Open

Jest testEnvironment node throw error #53

smalike opened this issue Aug 23, 2018 · 0 comments

Comments

@smalike
Copy link

smalike commented Aug 23, 2018

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant