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
8104335a-c9d3-5dbd-9307-b6c05838bb54
Seho Lee
2025-10-07T13:46:18Z