1 Star 1 Fork 2

小萨/EU.Admin.ReactNative

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
小萨 提交于 2025-02-28 16:26 +08:00 . 🚀expo init project
module.exports = {
preset: 'jest-expo',
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/coverage/**',
'!**/node_modules/**',
'!**/babel.config.js',
'!**/jest.setup.js',
'!**/docs/**',
'!**/cli/**',
],
moduleFileExtensions: ['js', 'ts', 'tsx'],
transformIgnorePatterns: [
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg))`,
],
coverageReporters: ['json-summary', ['text', { file: 'coverage.txt' }]],
reporters: [
'default',
['github-actions', { silent: false }],
'summary',
[
'jest-junit',
{
outputDirectory: 'coverage',
outputName: 'jest-junit.xml',
ancestorSeparator: '',
uniqueOutputName: 'false',
suiteNameTemplate: '{filepath}',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
},
],
],
coverageDirectory: '<rootDir>/coverage/',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/xiaochanghai520/eu.admin.reactnative.git
git@gitee.com:xiaochanghai520/eu.admin.reactnative.git
xiaochanghai520
eu.admin.reactnative
EU.Admin.ReactNative
develop

搜索帮助