Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Improve test coverage #126

Merged
merged 3 commits into from
Sep 6, 2021
Merged

Improve test coverage #126

merged 3 commits into from
Sep 6, 2021

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Sep 6, 2021

Closes #74.

This PR adds unit tests for cli.ts, and achieves 100% coverage for everything except branches, which are left at 86%. The lower branch coverage is mainly due to solitary if statements in manifestHandler.ts whose implicit else clauses are never tested.

In order to achieve the increased test coverage, some internal files have been refactored. All changes should be non-breaking.

@rekmarks rekmarks requested a review from a team as a code owner September 6, 2021 21:20
@rekmarks rekmarks merged commit 9571f07 into main Sep 6, 2021
@rekmarks rekmarks deleted the increase-test-coverage branch September 6, 2021 21:39
@rekmarks rekmarks mentioned this pull request Sep 6, 2021
rekmarks added a commit that referenced this pull request Sep 6, 2021
The scripts in `development` were previously migrated to TypeScript. They were somewhat broken. This PR makes them plain JavaScript again, and removes them from the build output. This alters the structure of `dist`, which has been taken into account.

This also fixes a bug introduced in #126, due to `evalWorker.ts` being renamed to `eval-worker.ts`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit tests
1 participant