Monstarrrr / rebutify

Web platform where experts submit rebuttals to common arguments against social justice movements.
https://rebutify.org
5 stars 1 forks source link

Decide on Unit Tests #212

Closed Monstarrrr closed 4 days ago

Monstarrrr commented 1 week ago

Which Unit Testing Solution to use on the Front-end ?

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:

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

Monstarrrr commented 1 week ago

Need your confidence levels then close 😃

purple-void commented 4 days ago

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"