9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jestがtimeoutして処理が終了してしまう問題

Last updated at Posted at 2019-06-21

結論

  • 設定ファイルでtimeoutの時間を伸ばす
  • エラーログで丁寧に指示が出るのでそれ通りに

方法

// jest.config.js
module.exports = {
  setupFilesAfterEnv: [
    `${process.cwd()}/jest.setup.js`
  ]
}
// jest.setup.js
jest.setTimeout(30000);

参考

Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout

公式ドキュメント

9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?