Change module mapping
This commit is contained in:
parent
21dfb21c41
commit
7ab91a568d
@ -91,12 +91,13 @@
|
||||
"node"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^@/(.*)$": "<rootDir>/resources/assets/src/components/$1"
|
||||
"^@/(.*)$": "<rootDir>/resources/assets/src/$1"
|
||||
},
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/resources/assets/tests/setup.js",
|
||||
"coveragePathIgnorePatterns": [
|
||||
"/node_modules/",
|
||||
"setup"
|
||||
"setup",
|
||||
"assets/src/js"
|
||||
],
|
||||
"testRegex": "resources/assets/tests/.*\\.(spec|test)\\.js"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { mount } from '@vue/test-utils';
|
||||
import Previewer from '@/common/Previewer';
|
||||
import Previewer from '@/components/common/Previewer';
|
||||
import * as mockedSkinview3d from '../../__mocks__/skinview3d';
|
||||
import '../../../src/images/textures/steve.png';
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { mount } from '@vue/test-utils';
|
||||
import ClosetItem from '@/user/ClosetItem';
|
||||
import ClosetItem from '@/components/user/ClosetItem';
|
||||
import axios from 'axios';
|
||||
import { swal } from '@/../js/notify';
|
||||
import { swal } from '@/js/notify';
|
||||
|
||||
jest.mock('axios');
|
||||
jest.mock('@/../js/notify');
|
||||
jest.mock('@/js/notify');
|
||||
|
||||
function factory(opt = {}) {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user