Skip to content

TA-4275: Add tests for Git integration cases#258

Merged
Zgjim Haziri (ZgjimHaziri) merged 12 commits intomasterfrom
add-tests
Sep 22, 2025
Merged

TA-4275: Add tests for Git integration cases#258
Zgjim Haziri (ZgjimHaziri) merged 12 commits intomasterfrom
add-tests

Conversation

@ZgjimHaziri
Copy link
Contributor

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) commented Sep 18, 2025

Description

  • Added test cases for export/import with gitBranch options. Added a test for this bug too. The tests were done based on the other export/import test patterns, by also mocking the GitService usage.
  • GitService by itself was then fully tested with unit tests. Note: These were AI assisted.
  • Changed batch-export-import fs usage from node:fs to fs. This consists with the fs that is used everywhere in content-cli. The inconsistency was found because the mocking of fs in tests wasn't propagating in this specific class.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) requested a review from a team as a code owner September 18, 2025 08:41
Co-authored-by: Buqeta <73654883+Buqeta@users.noreply.github.com>
@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) merged commit 4dc74c9 into master Sep 22, 2025
1 check passed
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.

4 participants