Skip to content

Commit

Permalink
added tests for edge cases to improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nktnet committed Oct 21, 2023
1 parent de52fe0 commit 86b47b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/edge/broken.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const apple =
9 changes: 9 additions & 0 deletions tests/edge/edge.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import importSync from '../../src';

test('Empty file', () => {
expect(importSync('./empty')).toStrictEqual({});
});

test('Broken file', () => {
expect(() => importSync('./broken')).toThrow(Error);
});
Empty file added tests/edge/empty.js
Empty file.

0 comments on commit 86b47b8

Please sign in to comment.