Skip to content

test(core,sisyphus): add unit tests for pure functions#11

Merged
ice-chillios merged 3 commits into
developfrom
feat/tests
Mar 28, 2026
Merged

test(core,sisyphus): add unit tests for pure functions#11
ice-chillios merged 3 commits into
developfrom
feat/tests

Conversation

@ice-chillios

Copy link
Copy Markdown
Member

192 tests covering:

  • core: deepMerge (13), mri-utils (20)
  • sisyphus: BumpType (21), Stone (24), Commit (28), Package (23), helpers (12), VersionCalculator (21), GitRemoteParser (16), utils (14)

core (33 tests):
- deepMerge: flat merge, nested objects, arrays, prototype pollution
- mri-utils: buildMriOptions, convertNumbers, mapPositionals, validatePositionals

sisyphus (159 tests):
- BumpType: compareBumps, higherBump, isBumpType
- Stone: create, JSON roundtrip, merge, snapshot-drop edge case
- Commit: conventional commit parsing, breaking changes, scopes
- Package: fromJson, withBump, newVersion, labels
- helpers: nonEmpty, ChangesetParser.toStoneData
- VersionCalculator: semver bumps, pre-release, snapshot
- GitRemoteParser: URL parsing for GitHub/GitLab/Bitbucket
- utils: buildPackagePathMap, findAffectedPackages, findDependencyPackages
@ice-chillios
ice-chillios marked this pull request as ready for review March 28, 2026 07:23
@ice-chillios
ice-chillios merged commit 4454834 into develop Mar 28, 2026
0 of 5 checks passed
@ice-chillios
ice-chillios deleted the feat/tests branch March 28, 2026 07:24
@ice-chillios
ice-chillios restored the feat/tests branch March 28, 2026 07:25
@ice-chillios
ice-chillios deleted the feat/tests branch July 19, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant