-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added MOCHA_CONSTANTS.ts to make mocharc.ts more flexible
Signed-off-by: mdolhalo <[email protected]>
- Loading branch information
mdolhalo
committed
Sep 11, 2023
1 parent
e5e1d68
commit 3f7994f
Showing
2 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** ******************************************************************* | ||
* copyright (c) 2020-2023 Red Hat, Inc. | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
**********************************************************************/ | ||
|
||
export const MOCHA_CONSTANTS: { | ||
MOCHA_DEFAULT_TIMEOUT: string | number; | ||
MOCHA_DIRECTORY: string | undefined; | ||
MOCHA_USERSTORY: undefined | string; | ||
MOCHA_RETRIES: string | number; | ||
MOCHA_BAIL: boolean; | ||
} = { | ||
MOCHA_DIRECTORY: process.env.MOCHA_DIRECTORY || undefined, | ||
|
||
MOCHA_USERSTORY: process.env.USERSTORY || undefined, | ||
|
||
MOCHA_BAIL: process.env.MOCHA_BAIL !== 'false', | ||
|
||
MOCHA_DEFAULT_TIMEOUT: process.env.MOCHA_DEFAULT_TIMEOUT || 1200000, | ||
|
||
MOCHA_RETRIES: process.env.MOCHA_RETRIES || 3 | ||
}; |