Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
test file fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal committed Apr 23, 2020
1 parent 36ad2f4 commit f547d25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/babel-plugin-jest-hoist/__tests__/importJest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
*
*/

/* eslint-disable import/no-duplicates */
import {jest} from '@jest/globals';
import {jest as aliasedJest} from '@jest/globals';
import * as JestGlobals from '@jest/globals';
/* eslint-enable import/no-duplicates */

import a from '../__test_modules__/a';
import b from '../__test_modules__/b';
Expand All @@ -35,7 +37,7 @@ test('named import', () => {
expect(a()).toBe('unmocked');
});

test('namespace import', () => {
test('aliased named import', () => {
expect(b._isMockFunction).toBe(undefined);
expect(b()).toBe('unmocked');
});
Expand Down

0 comments on commit f547d25

Please sign in to comment.