test: verify fs file operations #22
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the project export and package management logic to remove Docker dependencies and operate directly on the filesystem, simplifying the workflow and improving compatibility. Additionally, a new test suite is added to verify file operations outside of Docker.
Refactoring: Remove Docker Dependency and Use Filesystem
exportContainerCodefunction inexport.tsis replaced withexportProjectCode, which exports a project by copying files directly from the filesystem and runningpnpm build, rather than using Docker commands.addDependencyfunction inpackage.tsnow installs packages usingpnpm adddirectly in the project directory, instead of executing commands inside a Docker container. Also, the dev flag is updated to--save-dev.buildProjectfunction is added topackage.tsto build the project usingpnpm buildin the specified directory, further removing Docker dependency.Testing: File Operations Without Docker
file.test.tsto verify file operations such as creating, reading, renaming, removing files, and building file trees, all performed directly on the filesystem without Docker.