Files
mattermost-mobile/detox/e2e/config.js
Joseph Baylon bcca6be0af Detox/E2E: Search Messages e2e tests in Gekidou (#6756)
* Detox/E2E: Search Messages e2e tests in Gekidou

* Migrate to Detox 20

* Fix detoxrc

* Fix assertion for search messages
2022-11-21 12:58:51 -08:00

46 lines
1.6 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const platform = process.env.IOS === 'true' ? 'ios' : 'android';
const shard = process.env.CI_NODE_INDEX ? process.env.CI_NODE_INDEX : '';
module.exports = {
setupFilesAfterEnv: ['./test/setup.ts'],
maxWorkers: 1,
testSequencer: './custom_sequencer.js',
testTimeout: 120000,
rootDir: '.',
testMatch: ['<rootDir>/test/**/*.e2e.ts'],
transform: {
'\\.ts?$': 'ts-jest',
},
reporters: [
'detox/runners/jest/reporter',
['jest-junit', {
suiteName: 'Mobile App E2E with Detox and Jest',
outputDirectory: './artifacts',
outputName: `${platform}-junit${shard}.xml`,
uniqueOutputName: false,
}],
['jest-html-reporters', {
pageTitle: 'Mobile App E2E with Detox and Jest',
publicPath: './artifacts',
filename: `${platform}-report${shard}.html`,
expand: false,
}],
['jest-stare', {
reportHeadline: 'Mobile App E2E with Detox and Jest',
resultDir: './artifacts/jest-stare',
resultJson: `${platform}-data${shard}.json`,
resultHtml: `${platform}-main${shard}.html`,
}],
],
globalSetup: 'detox/runners/jest/globalSetup',
globalTeardown: 'detox/runners/jest/globalTeardown',
testEnvironment: 'detox/runners/jest/testEnvironment',
verbose: true,
moduleNameMapper: {
'^@support/(.*)': '<rootDir>/support/$1',
},
};