Skip to content

Commit

Permalink
feat: #49 (composable) rename to __mocks__
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Aug 24, 2021
1 parent c7cbdb8 commit 22c1bbf
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/composables/__tests__/getters/cartHelpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mockedCart } from '../mocks';
import { mockedCart } from '../__mocks__';
import { cartGetters } from './../../src/getters/cartGetters';
import * as utils from './../../src/helpers/_utils';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mockedCollectionList } from '../mocks';
import { mockedCollectionList } from '../__mocks__';
import { categoryGetters } from './../../src/getters/categoryGetters';

describe('[vendure-getters] category helpers', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mockedAllProductVariants, mockedOptions, mockedProduct, mockedProductVariant } from '../mocks';
import { mockedAllProductVariants, mockedOptions, mockedProduct, mockedProductVariant } from '../__mocks__';
import { productGetters } from './../../src/getters/productGetters';
import * as utils from './../../src/helpers/_utils';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useProduct } from '../../src//composables/useProduct';
import { mockedProduct } from '../mocks';
import { mockedProduct } from '../__mocks__';

jest.mock('@vue-storefront/core', () => ({
useProductFactory: (params) => () => params
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useShippingProvider } from '../../src/composables/useShippingProvider';
import { mockedShippingMethods } from '../mocks';
import { mockedShippingMethods } from '../__mocks__';

jest.mock('@vue-storefront/core', () => ({
useShippingProviderFactory: (params) => () => params
Expand Down

0 comments on commit 22c1bbf

Please sign in to comment.