mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-09 06:00:31 +08:00
Mock assets files
This commit is contained in:
parent
ba25161515
commit
5bccfd3d26
@ -91,7 +91,8 @@
|
||||
"node"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^@/(.*)$": "<rootDir>/resources/assets/src/$1"
|
||||
"^@/(.*)$": "<rootDir>/resources/assets/src/$1",
|
||||
"\\.(png|jpg)$": "<rootDir>/resources/assets/tests/__mocks__/file.js"
|
||||
},
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/resources/assets/tests/setup.js",
|
||||
"coveragePathIgnorePatterns": [
|
||||
|
1
resources/assets/tests/__mocks__/file.js
Normal file
1
resources/assets/tests/__mocks__/file.js
Normal file
@ -0,0 +1 @@
|
||||
export default '';
|
@ -1,9 +1,6 @@
|
||||
import { mount } from '@vue/test-utils';
|
||||
import Previewer from '@/components/common/Previewer';
|
||||
import * as mockedSkinview3d from '../../__mocks__/skinview3d';
|
||||
import '../../../src/images/textures/steve.png';
|
||||
|
||||
jest.mock('../../../src/images/textures/steve.png', () => '');
|
||||
|
||||
test('initialize skinview3d', () => {
|
||||
const wrapper = mount(Previewer);
|
||||
|
Loading…
Reference in New Issue
Block a user