add rollback tests and update test descriptions #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "test/fail-write-and-rollback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
writeUnitFiles
on errorstesting/mock.ts
dependency indeno.lock
This change adds comprehensive tests for the
writeUnitFiles
function to verify that files are properly rolled back if errors occur during their creation. The tests simulate failures when writing.service
or.timer
files, as well as when file deletion is blocked, and check that the function responds by cleaning up as expected or logging rollback failures. All test comments and descriptions have been updated to English for clarity. Thetesting/mock.ts
dependency was added to enable function stubbing in tests.#2
2882cc33aa
toe5f9f2c45a