:green_circle: Won't use unit tests unless we have specific complex functions to test, which we don't have (yet).
:orange_circle: Unit tests could facilitate refactoring and maintainability in the long run
Decision Outcome
Chosen option: "None (until a complex pure function is added)" Reason: It may be too time consuming to setup unit tests for the MVP if we don't have complex pure functions we need to test.
Seems like unit testing is nice for confirmation and to make the code possibility more understandable, but we are fine without it "until a complex pure function is added"
Which Unit Testing Solution to use on the Front-end ?
Impact: 🟡 Medium
Status: 🔒 Decided
Deciders & Confidence:
Technical Story:
Last updated: 09-06-2024
Context
Important decision because once chosen we won't be able to switch unless we rewrite a lot of code, presumably.
Decision Drivers
Considered Options
Jest
Jest is the default testing framework for NextJS
Ease of use:
Vitest
Vitest is a newer testing framework using vite
Ease of use:
Performance
None
No unit tests
Ease of use:
Scalability:
:green_circle: Unit tests in React aren't good ROI.
:green_circle: Won't use unit tests unless we have specific complex functions to test, which we don't have (yet).
:orange_circle: Unit tests could facilitate refactoring and maintainability in the long run
Decision Outcome
Chosen option: "None (until a complex pure function is added)"
Reason: It may be too time consuming to setup unit tests for the MVP if we don't have complex pure functions we need to test.
Positive Consequences
Negative Consequences