Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adds node: specifier to all native node modules #7559

Merged
merged 13 commits into from
May 28, 2024
Prev Previous commit
rm appends to reggi-log.txt
  • Loading branch information
reggi committed May 28, 2024
commit fb2c83a55235456a6d071d8a4ee0602eca6e2967
3 changes: 0 additions & 3 deletions workspaces/arborist/test/arborist/reify.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ let failMkdir = null
const fspMock = {
...fsp,
mkdir: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.mkdir\n')
if (failMkdir) {
throw failMkdir
}

return fsp.mkdir(...args)
},
rename: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.rename\n')
if (failRename) {
throw failRename
} else if (failRenameOnce) {
Expand All @@ -35,7 +33,6 @@ const fspMock = {
}
},
rm: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.rm\n')
if (failRm) {
throw new Error('rm fail')
}
Expand Down
Loading