Skip to content

Commit 517519f

Browse files
committed
feat: add jest types to compiler options
1 parent 9c64a81 commit 517519f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/__tests__/ublub/file-type.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ describe('Get file type tests.', () => {
77
const result = getFileType(1);
88

99
expect(result).toThrowError('The parameter must be a blob string.');
10-
} catch (e) {
11-
console.info(e);
10+
} catch (error) {
11+
console.info(error);
1212
}
1313
});
1414

@@ -17,8 +17,8 @@ describe('Get file type tests.', () => {
1717
const result = getFileType('unsupported-file');
1818

1919
expect(result).toThrowError('The file type is not supported.');
20-
} catch (e) {
21-
console.info(e);
20+
} catch (error) {
21+
console.info(error);
2222
}
2323
});
2424

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "dist",
55
"target": "es5",
66
"module": "esnext",
7-
"types": ["node"],
7+
"types": ["node", "jest"],
88
"lib": ["dom", "dom.iterable", "esnext"],
99
"jsx": "react",
1010
"moduleResolution": "node",

0 commit comments

Comments
 (0)