mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 10:02:12 +00:00
* tgui-bench (#61081) Added a package that allows precisely benchmarking tgui components on IE11 without having the game launched. It has a convenient syntax for writing tests, just create a file packages/tgui-bench/tests/*.test.tsx, and export a function which you want to benchmark Performance improvements As part of this PR, I have also improved the raw performance of some tgui components: Button component - 1.8x faster Flex component - 1.1x faster Stack component - 1.3x faster This improves performance of heavy UIs by a tiny bit. * tgui-bench Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
18 lines
495 B
JavaScript
18 lines
495 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/packages'],
|
|
testMatch: [
|
|
'<rootDir>/packages/**/__tests__/*.{js,ts,tsx}',
|
|
'<rootDir>/packages/**/*.{spec,test}.{js,ts,tsx}',
|
|
],
|
|
testPathIgnorePatterns: [
|
|
'<rootDir>/packages/tgui-bench',
|
|
],
|
|
testEnvironment: 'jsdom',
|
|
testRunner: require.resolve('jest-circus/runner'),
|
|
transform: {
|
|
'^.+\\.(js|cjs|ts|tsx)$': require.resolve('babel-jest'),
|
|
},
|
|
moduleFileExtensions: ['js', 'cjs', 'ts', 'tsx', 'json'],
|
|
resetMocks: true,
|
|
};
|