Skip to content

Commit

Permalink
Remove tmpdir when test is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Lai committed May 15, 2018
1 parent 87c02b0 commit fb6cc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe.skip('Test clasp push function', () => {
describe.skip('Test clasp status function', () => {
function setupTmpDirectory(filepathsAndContents: Array<{ file: string, data: string }>) {
fs.ensureDirSync('tmp');
const tmpdir = tmp.dirSync({ unsafeCleanup: true, dir: 'tmp/', keep: true }).name;
const tmpdir = tmp.dirSync({ unsafeCleanup: true, dir: 'tmp/', keep: false }).name;
filepathsAndContents.forEach(({ file, data }) => {
fs.outputFileSync(path.join(tmpdir, file), data);
});
Expand Down

0 comments on commit fb6cc3e

Please sign in to comment.