Skip to content

chore: replace fs-extra with native Node.js fs in tests - #1524

Open
roli-lpci wants to merge 1 commit into
mozilla:masterfrom
roli-lpci:chore/remove-fs-extra
Open

chore: replace fs-extra with native Node.js fs in tests#1524
roli-lpci wants to merge 1 commit into
mozilla:masterfrom
roli-lpci:chore/remove-fs-extra

Conversation

@roli-lpci

Copy link
Copy Markdown

Summary

  • Replace fs-extra with native fs module in tests/core.js
  • fs-extra was only used for emptyDirSync — replaced with fs.rmSync({ recursive: true, force: true })
  • All other methods used (mkdtempSync, writeFileSync) are already native fs methods
  • Removes fs-extra and its 3 transitive dependencies (graceful-fs, jsonfile, universalify) from devDependencies

Changes

  • tests/core.jsrequire('fs-extra')require('fs'), emptyDirSync/rmdirSyncrmSync
  • package.json — removed fs-extra from devDependencies
  • package-lock.json — regenerated

Testing

All 246 tests pass, 0 failures. Lint clean.

fs-extra was only used in tests/core.js for emptyDirSync, which can
be replaced with fs.rmSync({ recursive: true, force: true }). All
other methods used (mkdtempSync, writeFileSync, rmdirSync) are already
native fs methods.

This removes fs-extra and its 3 transitive dependencies (graceful-fs,
jsonfile, universalify) from devDependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant