[MM-55294] Migrate jest v26 to v29 to speed up "web app CI PR / test" (#25192)

Этот коммит содержится в:
M-ZubairAhmed
2023-11-07 11:41:26 +05:30
коммит произвёл GitHub
родитель 4dbf1f8c26
Коммит f733dc58fa
33 изменённых файлов: 8913 добавлений и 495 удалений

Просмотреть файл

@@ -41,14 +41,20 @@ const config = {
'node_modules/(?!react-native|react-router|p-queue|p-timeout|@mattermost/compass-components|@mattermost/compass-icons)',
],
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: ['<rootDir>/src/tests/setup.ts'],
setupFilesAfterEnv: ['<rootDir>/src/tests/setup_jest.ts'],
testEnvironment: 'jsdom',
testTimeout: 60000,
testURL: 'http://localhost:8065',
testEnvironmentOptions: {
url: 'http://localhost:8065',
},
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
};
module.exports = config;