Skip to content

SP-1091: replace json writes and zip file reads with real files in temp directory#376

Open
Jing Sun (kuvia) wants to merge 8 commits into
mainfrom
SP-1091-Content-CLI-Use-a-real-temp-filesystem-in-integration-tests
Open

SP-1091: replace json writes and zip file reads with real files in temp directory#376
Jing Sun (kuvia) wants to merge 8 commits into
mainfrom
SP-1091-Content-CLI-Use-a-real-temp-filesystem-in-integration-tests

Conversation

@kuvia

Copy link
Copy Markdown
Contributor

Description

Removed general mocking of fs, this had a lot of cascading changes, most of which are writes to JSON files that have all been replaced by real file writes. I have also replaced all mocks of zip file reading occasions in package import.

Instances where file mocks were kept are git branch and profile reads because they strictly don't read from a temp dir but from a git repo and homedir respectively. If we want to change those too I would propose to do it in a different task because the PR is big enough as is.

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

@kuvia Jing Sun (kuvia) requested review from a team as code owners June 15, 2026 11:55
Comment thread src/core/utils/file-service.ts Outdated
Comment thread tests/commands/configuration-management/config-list-variables.spec.ts Outdated
Comment thread tests/utls/fs-utils.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants