diff --git a/jest.config.js b/jest.config.js index 4467b5fe3..0dda7e94a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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: ['/jest-setup.js'], diff --git a/site/.dumi/pages/benchmark/result.json b/site/.dumi/pages/benchmark/result.json index 53ccccaf2..666a4e27f 100644 --- a/site/.dumi/pages/benchmark/result.json +++ b/site/.dumi/pages/benchmark/result.json @@ -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"] } ]