11 Star 152 Fork 23

mallfoundry / taroify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 710 Bytes
一键复制 编辑 原始数据 按行查看 历史
tangzhi 提交于 2022-01-11 15:30 . Supports jest
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
clearMocks: true,
coverageDirectory: "coverage",
moduleNameMapper: {
"@tarojs/components": "@tarojs/components/dist-h5/react",
},
setupFilesAfterEnv: ["<rootDir>/jest/jest-setup.ts"],
testEnvironment: "jest-environment-jsdom",
testMatch: [
"<rootDir>/packages/**/__tests__/**/*.[jt]s?(x)",
"<rootDir>/packages/**/?(*.)+(spec|test).[tj]s?(x)",
],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
},
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@taro)", "^.+\\.(css|sass|scss|less)$"],
}
TypeScript
1
https://gitee.com/mallfoundry/taroify.git
git@gitee.com:mallfoundry/taroify.git
mallfoundry
taroify
taroify
main

搜索帮助