Skip to content

Commit

Permalink
Fix tests with ES Import/CommonJS require
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugome committed Sep 19, 2019
1 parent 056be66 commit eba8730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/unit/vuedraggable.integrated.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { mount } from "@vue/test-utils";
import Sortable from "sortablejs";
jest.genMockFromModule('sortablejs');
jest.mock('sortablejs');
jest.mock('sortablejs', () => ({ __esModule: true, default: jest.genMockFromModule('sortablejs') }));
const SortableFake = {
destroy: jest.fn(),
option: jest.fn()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/vuedraggable.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { mount, shallowMount } from "@vue/test-utils";
import Sortable from "sortablejs";
jest.genMockFromModule('sortablejs');
jest.mock('sortablejs');
jest.mock('sortablejs', () => ({ __esModule: true, default: jest.genMockFromModule('sortablejs') }));
const SortableFake = {
destroy: jest.fn(),
option: jest.fn()
Expand Down

0 comments on commit eba8730

Please sign in to comment.