Refactor journey tests #1140
Labels
documentation
Improvements or additions to documentation
javascript
Pull requests that update Javascript code
tech-debt
Describe what should be investigated or refactored
As part of #1020, I discovered that our journey tests are pretty brittle and follow some patterns that run contrary to how Jest tests are usually written. In general, tests rely on special hard-coded strings, are highly sequential, and spread implementation details across several files or different spots in the code.
While this means our Journey tests do provide confidence that Pepr works as intended, they're a poor example for additional contributors to model additional tests cases off of.
Links to any relevant code
Examine code in
journey/
, starting withentrypoint.test.ts
.Additional context
@samayer12 is splitting this issue off as a separate track of work from #1020, so there will be a branch created to reference existing refactor efforts, probably sometime before 19 Sep, that will be left as a comment on this issue.
The text was updated successfully, but these errors were encountered: