代码拉取完成,页面将自动刷新
// COVERAGE
const COVERAGE = process.env.COVERAGE;
module.exports = {
setupFiles: ["./tests/unit/setup.js"],
moduleFileExtensions: ["js", "jsx", "json", "vue", "md", "jpg"],
transform: {
".*\\.(vue|md)$": "<rootDir>/node_modules/vue-jest",
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
},
// 支持源代码中相同的 `@` -> `packages` 别名
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/packages/$1",
"^ve-table/(.*)$": "<rootDir>/$1", // map webpack externals comps
},
snapshotSerializers: ["<rootDir>/node_modules/jest-serializer-vue"],
coverageDirectory: "tests/unit/coverage",
collectCoverage: COVERAGE === "true",
collectCoverageFrom: [
"packages/ve-*/**/*.{jsx,js,vue}",
"!packages/ve-*/src/util/*",
"!packages/ve-checkbox-group/**",
"!packages/ve-table/src/selection/*",
"!**/node_modules/**",
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。