feat: eslint + stylelint
This commit is contained in:
22
jest.config.js
Normal file
22
jest.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
moduleFileExtensions: ["ts", "js", "json", "vue"],
|
||||
watchman: false,
|
||||
moduleNameMapper: {
|
||||
".+\\.(svg)\\?inline$": "<rootDir>/__mocks__/svgMock.js",
|
||||
"^~/(.*)$": "<rootDir>/$1",
|
||||
"^~~/(.*)$": "<rootDir>/$1",
|
||||
},
|
||||
transform: {
|
||||
"^.+\\.js$": "babel-jest",
|
||||
".*\\.(vue)$": "vue-jest",
|
||||
},
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
|
||||
snapshotSerializers: ["jest-serializer-vue"],
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: [
|
||||
"<rootDir>/components/**/*.vue",
|
||||
"<rootDir>/pages/*.vue",
|
||||
],
|
||||
testURL: "http://localhost/",
|
||||
preset: "ts-jest/presets/js-with-babel",
|
||||
}
|
||||
Reference in New Issue
Block a user