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
79e9d406-f23d-5e33-b687-87767a6af4e7
Seho Lee
2026-01-14T04:03:29Z