Skip to content

Commit 70910d1

Browse files
committed
chore: ignore some lines for test coverage
1 parent 378d83d commit 70910d1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/__tests__/cli.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ describe('copyfiles', () => {
8080
exitSpy.mockRestore();
8181
done(e);
8282
});
83-
}), 250);
83+
}), 300);
8484
})

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export function copyfiles(paths: string[], options: CopyFileOptions, callback?:
6868
try {
6969
const stat = existsSync(outPath) ? require('node:fs').statSync(outPath) : null;
7070
isDestFile = !stat || !stat.isDirectory();
71+
/* v8 ignore next 3 */
7172
} catch {
7273
isDestFile = true;
7374
}

0 commit comments

Comments
 (0)