Skip to content

Commit

Permalink
chore: try to reduce windows shim test flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 18, 2024
1 parent ad7ab8c commit d736700
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 83 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tap-testdir*/
!/docs/
!/index.js
!/lib/
!/libtap-settings.js
!/LICENSE*
!/map.js
!/node_modules/
Expand Down
1 change: 1 addition & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ graph LR;
npm-->remark-gfm;
npm-->remark-github;
npm-->remark;
npm-->rimraf;
npm-->semver;
npm-->sigstore-tuf["@sigstore/tuf"];
npm-->spawk;
Expand Down
7 changes: 7 additions & 0 deletions libtap-settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// use rimraf for tap recursive directory removal, so that
// the windows tests don't flake with fs errors
const { rimraf } = require('rimraf')
module.exports = {
rmdirRecursiveSync: path => rimraf.sync(path),
rmdirRecursive: (path, cb) => rimraf(path).then(() => cb(), cb),
}
Loading

0 comments on commit d736700

Please sign in to comment.