---
title: "Discussion on \"How to speed up your integration tests\" | Hashnode"
description: "Discussion on \"How to speed up your integration tests\". And delete some code in the process"
url: "https://hashnode.com/posts/how-to-speed-up-your-integration-tests/63e40c91bb2d01b4a3d34946"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to speed up your integration tests](https://akoskm.com/how-to-speed-up-your-integration-tests?utm_source=hashnode&utm_medium=feed)

And delete some code in the process

Feb 8, 2023 · 4 min read · akoskm.com  
Updated Jun 14, 2023  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#cypress](https://hashnode.com/tag/cypress)
-   [#cicd](https://hashnode.com/tag/cicd)

## Written by

[Ákos Kőműves](https://hashnode.com/@akoskm)

@akoskm

  
[View profile](https://hashnode.com/@akoskm)

Full-Stack Developer and Writer

I build web apps and make educational content to help web developers.

## Responses 1

Markdown supported · ⌘↵ to post

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

[Dec 22, 2023](https://hashnode.com/posts/how-to-speed-up-your-integration-tests/63e40c91bb2d01b4a3d34946/comment/65861d40c510011bdfd80ca0)

I do like the approach of combing related tests. However, if using Jest, the test will timeout if run time exceeds 5 seconds. What would you do this scenario? Increase the jest timeout? Or split the tests so they are under 5 seconds each.

[Ákos Kőműves](https://hashnode.com/@akoskm)

[Dec 23, 2023](https://hashnode.com/posts/how-to-speed-up-your-integration-tests/63e40c91bb2d01b4a3d34946/comment/65861d40c510011bdfd80ca0#reply-65868d9dc510011bdfdaa67f)

5 seconds seems to be a lot, even when combined. In the tests we usually combine, the setup takes a while. Let's say you have an onboarding wizard with a couple of steps. In the end, you have a checkbox that can toggle between the email and SSO login options and show different inputs. Before, we'd have the filling of the onboarding wizard in before each and test the radio options in separate tests. If these are backend tests, not having to recreate a couple of entities at the start but using seed data can also help. I hope this was helpful.
