1 Star 0 Fork 0

ten2net/react-spring

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 915 Bytes
一键复制 编辑 原始数据 按行查看 历史
Josh 提交于 2021-12-03 18:47 . chore: improve workflow
const path = require('path')
module.exports = {
preset: 'ts-jest',
setupFilesAfterEnv: [path.join(__dirname, 'packages/core/test/setup.ts')],
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'.+/(types|__snapshots__)/.+',
'<rootDir>/node_modules/',
],
modulePathIgnorePatterns: ['dist', 'cypress'],
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
},
collectCoverageFrom: [
'<rootDir>/packages/{animated,core,rafz,shared}/src/*.{ts,tsx}',
'<rootDir>/targets/{web}/src/*.{ts,tsx}',
],
coverageDirectory: './coverage',
coverageThreshold: {
global: {
statements: 80,
branches: 74,
functions: 71,
lines: 82,
},
},
moduleFileExtensions: ['js', 'ts', 'tsx'],
coverageReporters: ['json', 'html', 'text'],
timers: 'fake',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gdsten2net/react-spring.git
[email protected]:gdsten2net/react-spring.git
gdsten2net
react-spring
react-spring
master

搜索帮助