Skip to content

Commit f32c1b8

Browse files
committed
chore: migrate jest-mock to TypeScript
1 parent dc35500 commit f32c1b8

File tree

3 files changed

+308
-110
lines changed

3 files changed

+308
-110
lines changed

packages/jest-mock/src/__tests__/jest_mock.test.js renamed to packages/jest-mock/src/__tests__/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
const vm = require('vm');
11+
import vm from 'vm';
1212

1313
describe('moduleMocker', () => {
1414
let moduleMocker;
@@ -182,6 +182,7 @@ describe('moduleMocker', () => {
182182
it('mocks ES2015 non-enumerable static properties and methods', () => {
183183
class ClassFoo {
184184
static foo() {}
185+
static fooProp: Function;
185186
}
186187
ClassFoo.fooProp = () => {};
187188

0 commit comments

Comments
 (0)