2022-11-13 05:25:56 +00:00
|
|
|
# Use mocha for JS unit testing framework
|
|
|
|
|
2022-12-03 02:02:52 +00:00
|
|
|
- Status: accept
|
|
|
|
- Deciders: Arthur Lu, Marc Reta
|
|
|
|
- Date: 11 / 12 / 22
|
2022-11-13 05:25:56 +00:00
|
|
|
|
|
|
|
## Decision Drivers
|
|
|
|
|
2022-12-03 02:02:52 +00:00
|
|
|
- Need specification on how to write unit testing assertion statements
|
|
|
|
- Need framework to perform unit testing quickly for immediate code feedback
|
2022-11-13 05:25:56 +00:00
|
|
|
|
|
|
|
## Considered Options
|
2022-12-03 02:02:52 +00:00
|
|
|
|
|
|
|
- JUnit5
|
|
|
|
- Jest
|
|
|
|
- Mocha
|
2022-11-13 05:25:56 +00:00
|
|
|
|
|
|
|
## Decision Outcome
|
|
|
|
|
2022-12-03 02:02:52 +00:00
|
|
|
Chosen Option: Mocha because it was significantly faster to run than Jest (1s vs 30s), and can use a variety of assertion styles unlike JUnit5.
|