forked from Ivasoft/mattermost-mobile
fix detox report (#6115)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"testRunner": "jest --forceExit --detectOpenHandles",
|
||||
"runnerConfig": "e2e/config.json",
|
||||
"runnerConfig": "e2e/config.js",
|
||||
"configurations": {
|
||||
"ios.sim.debug": {
|
||||
"binaryPath": "../ios/Build/Products/Debug-iphonesimulator/Mattermost.app",
|
||||
|
||||
35
detox/e2e/config.js
Normal file
35
detox/e2e/config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
const platform = process.env.IOS ? 'ios' : 'android';
|
||||
|
||||
module.exports = {
|
||||
setupFilesAfterEnv: ['./test/setup.ts'],
|
||||
maxWorkers: 1,
|
||||
testEnvironment: './environment',
|
||||
testRunner: 'jest-circus/runner',
|
||||
testTimeout: 120000,
|
||||
testRegex: '\\.e2e\\.ts$',
|
||||
transform: {
|
||||
'\\.ts?$': 'ts-jest',
|
||||
},
|
||||
reporters: [
|
||||
'detox/runners/jest/streamlineReporter',
|
||||
['jest-junit', {
|
||||
suiteName: 'Mobile App E2E with Detox and Jest',
|
||||
outputDirectory: './artifacts',
|
||||
outputName: `${platform}-junit.xml`,
|
||||
uniqueOutputName: false,
|
||||
}],
|
||||
['jest-html-reporters', {
|
||||
pageTitle: 'Mobile App E2E with Detox and Jest',
|
||||
publicPath: './artifacts',
|
||||
filename: `${platform}-report.html`,
|
||||
expand: false,
|
||||
}],
|
||||
],
|
||||
verbose: true,
|
||||
moduleNameMapper: {
|
||||
'^@support/(.*)': '<rootDir>/support/$1',
|
||||
},
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"setupFilesAfterEnv": ["./test/setup.ts"],
|
||||
"maxWorkers": 1,
|
||||
"testEnvironment": "./environment",
|
||||
"testRunner": "jest-circus/runner",
|
||||
"testTimeout": 120000,
|
||||
"testRegex": "\\.e2e\\.ts$",
|
||||
"transform": {
|
||||
"\\.ts?$": "ts-jest"
|
||||
},
|
||||
"reporters": ["detox/runners/jest/streamlineReporter"],
|
||||
"verbose": true,
|
||||
"moduleNameMapper": {
|
||||
"^@support/(.*)": "<rootDir>/support/$1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user