mattermost-mobile-upstream/jest.config.js
yasser khan 6672333238
ci(e2e): port E2E CI stack to release-2.42 to unblock merges (#10005)
* ci(e2e): port E2E CI stack to release-2.42 to unblock merges

Combined backport of the main E2E CI surface through #9975 (Maestro,
CMT multi-platform, TSIO reporting, five-server Matterwick inputs, and
E2E/Override waive) so release-2.42 PRs can satisfy required e2e-test/*
checks via E2E/Run or E2E/Override.

Co-authored-by: Cursor <cursoragent@cursor.com>

* ci(test): exclude detox/ from root Jest (from #9925)

Root Jest was collecting detox/utils node:test suites brought in by the
E2E CI port, which fail with "must contain at least one test". Match main
by ignoring /detox/ in the app unit-test run.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 16:50:48 +05:30

36 lines
1.4 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// eslint-disable-next-line no-process-env
process.env.TZ = 'UTC';
module.exports = {
preset: 'jest-expo',
verbose: true,
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.test.json',
},
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
clearMocks: true,
setupFilesAfterEnv: ['<rootDir>/test/setup.ts'],
collectCoverageFrom: ['app/**/*.{js,jsx,ts,tsx}'],
coverageReporters: ['lcov', 'text-summary', 'json-summary'],
testPathIgnorePatterns: ['/node_modules/', '/detox/'],
coveragePathIgnorePatterns: ['/node_modules/', '/components/', '/screens/', '/routes/'],
transformIgnorePatterns: [
'node_modules/(?!' +
'(@react-native|react-native)|' +
'expo(?:-[^/]+)?|@expo|expo-modules-core|uuid|' +
'@sentry/react-native|' +
'react-intl|@formatjs/[^/]+|intl-messageformat|@messageformat/[^/]+|' +
'validator|' +
'hast-util-from-selector|hastscript|property-information|hast-util-parse-selector|space-separated-tokens|comma-separated-tokens|zwitch|' +
'@mattermost/calls|@mattermost/rnutils|@mattermost/hardware-keyboard|@mattermost/rnshare|@mattermost/secure-pdf-viewer|@mattermost/compass-icons|' +
'@rneui/base|' +
'@shopify/flash-list|' +
'ratex-react-native)',
],
};