Skip to content

Commit 8ce2fd0

Browse files
authored
chore(test): do not fail tests if cleaning up fake homedir fails (#449)
1 parent 96301c1 commit 8ce2fd0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/cli-repl/test/e2e.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,13 @@ describe('e2e', function() {
415415

416416
afterEach(async() => {
417417
await TestShell.killall();
418-
await promisify(rimraf)(homedir);
418+
try {
419+
await promisify(rimraf)(homedir);
420+
} catch (err) {
421+
// On Windows in CI, this can fail with EPERM for some reason.
422+
// If it does, just log the error instead of failing all tests.
423+
console.error('Could not remove fake home directory:', err);
424+
}
419425
});
420426

421427
describe('config file', async() => {

0 commit comments

Comments
 (0)