We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9c4cc commit 596477bCopy full SHA for 596477b
test/app.test.ts
@@ -17,9 +17,11 @@ import * as app from '../src/app';
17
describe('app', () => {
18
19
beforeEach(async () => {
20
- if ((await fs.stat(sandboxDir)).isDirectory()) {
21
- await fs.rm(sandboxDir, { recursive: true, force: true})
22
- }
+ try {
+ if ((await fs.stat(sandboxDir)).isDirectory()) {
+ await fs.rm(sandboxDir, { recursive: true, force: true})
23
+ }
24
+ } catch(err: any) {}
25
await fs.mkdir(sandboxDir)
26
await fs.mkdir(join(sandboxDir, 'peer-certs'))
27
0 commit comments