[Vuejs]-Vue.js test unit imports failing in spec files

0👍

THe correct structure

src
    components
        ContactForm.vue
    store
        __mocks__
            index.js
        index.js
tests
    unit
        ContactForm.spec.js

ContactForm.spec.js
    import { __creareMocks as createMocks } from "@/store";
    ...
    jest.mock("@/store");

Leave a comment