1 Star 0 Fork 24

sumaolin/taroify

forked from 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)$"],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/sumaolin/taroify.git
[email protected]:sumaolin/taroify.git
sumaolin
taroify
taroify
main

搜索帮助