Skip to content

Commit

Permalink
chore: 调整覆盖率统计范围 (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue authored Nov 21, 2023
1 parent 5e28da6 commit 7de66bf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
8 changes: 6 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ module.exports = {
testEnvironment: 'jest-electron/environment',
preset: 'ts-jest/presets/js-with-ts',
collectCoverage: false,
collectCoverageFrom: ['packages/*/src/**/*.{ts,tsx,js}', '!**/node_modules/**'],
collectCoverageFrom: [
'packages/*/src/**/*.{ts,tsx,js}',
'!**/node_modules/**',
'!packages/*/src/deps/**/*.{ts,tsx,js}',
],
modulePathIgnorePatterns: ['packages/*/dist'],
moduleFileExtensions: ['tsx','ts', 'js', 'jsx', 'json'],
moduleFileExtensions: ['tsx', 'ts', 'js', 'jsx', 'json'],
testPathIgnorePatterns: [],
testRegex: '/test/.*\\.test\\.tsx?$',
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
Expand Down
40 changes: 20 additions & 20 deletions site/.dumi/pages/benchmark/result.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
[
{
"title": "首次渲染",
"tableHead": ["4.x", "5.0.21", "5.0.29", "5.实现冒泡"],
"iphone6/ios9": ["2", "1", "1", "1"],
"仿真": ["26", "13", "14", "15"],
"iphone 8": ["25", "11", "10", "13"]
"tableHead": ["5.0.21", "5.0.29", "5.0.30"],
"iphone6/ios9": ["1", "1", "1"],
"仿真": ["13", "14", "15"],
"iphone 8": ["11", "10", "13"]
},
{
"title": "二次渲染",
"tableHead": ["4.x", "5.0.21", "5.0.29", "5.实现冒泡"],
"iphone6/ios9": ["1", "1", "1", "1"],
"仿真": ["26", "16", "19", "18"],
"iphone 8": ["21", "15", "16", "16"]
"tableHead": ["5.0.21", "5.0.29", "5.0.30"],
"iphone6/ios9": ["1", "1", "1"],
"仿真": ["16", "19", "18"],
"iphone 8": ["15", "16", "16"]
},
{
"title": "Tooltip",
"tableHead": ["4.x", "5.0.21", "5.0.29", "5.实现冒泡"],
"iphone6/ios9": ["8", "7", "7", "7"],
"仿真": ["42", "40", "36", "36"],
"iphone 8": ["60", "45", "49", "50"]
"tableHead": ["5.0.21", "5.0.29", "5.0.30"],
"iphone6/ios9": ["7", "7", "7"],
"仿真": ["40", "36", "36"],
"iphone 8": ["45", "49", "50"]
},
{
"title": "平移",
"tableHead": ["4.x", "5.0.21", "5.0.29", "5.实现冒泡"],
"iphone6/ios9": ["6", "1", "1", "1"],
"仿真": ["54", "26", "26", "27"],
"iphone 8": ["60", "28", "26", "25"]
"tableHead": ["5.0.21", "5.0.29", "5.0.30"],
"iphone6/ios9": ["1", "1", "1"],
"仿真": ["26", "26", "27"],
"iphone 8": ["28", "26", "25"]
},
{
"title": "缩放",
"tableHead": ["4.x", "5.0.21", "5.0.29", "5.实现冒泡"],
"iphone6/ios9": ["6", "3", "3", "-"],
"仿真": ["51", "20", "21", "22"],
"iphone 8": ["60", "24", "24", "28"]
"tableHead": ["5.0.21", "5.0.29", "5.0.30"],
"iphone6/ios9": ["3", "3", "-"],
"仿真": ["20", "21", "22"],
"iphone 8": ["24", "24", "28"]
}
]

0 comments on commit 7de66bf

Please sign in to comment.