Skip to content

Commit 30a9ca2

Browse files
authored
test: make sure to return promise from test (#5336)
1 parent a441ecf commit 30a9ca2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/jest-runtime/src/__tests__/runtime_jest_fn.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('Runtime', () => {
4747
});
4848

4949
describe('jest.clearAllMocks', () => {
50-
it('clears all mocks', () => {
50+
it('clears all mocks', () =>
5151
createRuntime(__filename).then(runtime => {
5252
const root = runtime.requireModule(runtime.__mockRootPath);
5353

@@ -64,7 +64,6 @@ describe('Runtime', () => {
6464

6565
expect(mock1).not.toBeCalled();
6666
expect(mock2).not.toBeCalled();
67-
});
68-
});
67+
}));
6968
});
7069
});

0 commit comments

Comments
 (0)