Skip to content

Commit 53bb845

Browse files
authored
Merge pull request #133 from netbootxyz/fix/isbinaryfile-esm-mock
Fix ESM parse error for isbinaryfile mock in tests
2 parents 92d851a + de38167 commit 53bb845

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/app.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jest.mock('child_process');
1010
jest.mock('systeminformation');
1111
jest.mock('js-yaml');
1212
jest.mock('readdirp');
13-
jest.mock('isbinaryfile');
13+
jest.mock('isbinaryfile', () => ({
14+
isBinaryFile: jest.fn(),
15+
}));
1416

1517
describe('NetbootXYZ WebApp', () => {
1618
let app;

0 commit comments

Comments
 (0)