fixed fileMock renderer & include

This commit is contained in:
Ulf Gebhardt 2021-04-25 15:22:18 +02:00
parent 1a42bbcf2a
commit 920094e85a
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 6 additions and 4 deletions

View File

@ -49,10 +49,10 @@
"vue"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1",
"^~/(.*)$": "<rootDir>/$1",
"\\.(svg)$": "<rootDir>/test/fileMock.js",
"\\.(css|less)$": "identity-obj-proxy",
"\\.(svg)$": "<rootDir>/test/fileMock.js"
"^@/(.*)$": "<rootDir>/src/$1",
"^~/(.*)$": "<rootDir>/$1"
},
"setupFiles": [
"<rootDir>/test/registerContext.js",

View File

@ -1 +1,3 @@
module.exports = 'test-file-stub'
module.exports = {
render: () => 'test-file-stub'
};