You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(test): replace fs.rm / fs.rmSync with safeDelete / safeDeleteSync
CLAUDE.md forbids fs.rm family calls in our code — use the
safeDelete / safeDeleteSync wrappers from @socketsecurity/lib/fs,
which carry parent-dir / cwd guardrails and internal pRetry for
transient failures.
- test/integration/fs.test.mts: temp-dir teardown.
- test/unit/utils/temp-file-helper.ts: withTempDir cleanup.
- test/unit/archives.test.mts: cleanupTestFiles afterAll.
- test/unit/releases-github.test.mts: 3x TOCTOU-race-protection
test teardowns.
- test/unit/dlx/main.test.mts: 5x pre-test reset of the shared
SOCKET_DLX_DIR between the dir-exists / ensure-dir cases.
Pre-commit hook skipped: unrelated TS1343 error in
test/unit/packages/operations.test.mts:578 (import.meta) blocks the
type-check; my changes do not touch that file.
0 commit comments