06-10

Colliding thoughts on testing

We have 70% integration tests for our CRUD heavy app. It's now taking over 5 minutes to run npx jest since it cannot be parallelized unless we run multiple docker db containers. I mean we could do that and will do that, but even so, eventually that will also hit a wall at some point. So should be go more Unit? or stay more on integration?

I feel like it is pretty hard to decide at this point.

First thing I am considering is refactoring original code to be more testable.

After that I will consider moving some of integration test heavy features into unit test heavy way.

06-10

Colliding thoughts on testing

We have 70% integration tests for our CRUD heavy app. It's now taking over 5 minutes to run npx jest since it cannot be parallelized unless we run multiple docker db containers. I mean we could do that and will do that, but even so, eventually that will also hit a wall at some point. So should be go more Unit? or stay more on integration?

I feel like it is pretty hard to decide at this point.

First thing I am considering is refactoring original code to be more testable.

After that I will consider moving some of integration test heavy features into unit test heavy way.

Copyright © 2023 Seho Lee All Rights Reserved.
</>
Latest Commit
edaf675f-de21-5ea2-8931-4dd0b671e0a8
Seho Lee
2025-08-03T07:09:41Z