1 Star 0 Fork 0

LvHuaiSheng/vue-easytable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 939 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangshuwei 提交于 2022-07-19 17:21 . Update jest.config.js
// 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/**",
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/sourcenet/vue-easytable.git
git@gitee.com:sourcenet/vue-easytable.git
sourcenet
vue-easytable
vue-easytable
master

搜索帮助