UNPKG

1.08 kBJavaScriptView Raw
1'use strict';
2
3const path = require('path');
4
5module.exports = {
6 ENVIRONMENT_CONFIG_MAP: {
7 JEST_SUITE_NAME: 'suiteName',
8 JEST_JUNIT_OUTPUT: 'output',
9 JEST_JUNIT_OUTPUT_DIR: 'outputDirectory',
10 JEST_JUNIT_OUTPUT_NAME: 'outputName',
11 JEST_JUNIT_CLASSNAME: 'classNameTemplate',
12 JEST_JUNIT_SUITE_NAME: 'suiteNameTemplate',
13 JEST_JUNIT_TITLE: 'titleTemplate',
14 JEST_JUNIT_ANCESTOR_SEPARATOR: 'ancestorSeparator',
15 JEST_JUNIT_ADD_FILE_ATTRIBUTE: 'addFileAttribute',
16 JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName',
17 },
18 DEFAULT_OPTIONS: {
19 suiteName: 'jest tests',
20 output: path.join(process.cwd(), './junit.xml'),
21 outputDirectory: null,
22 outputName: 'junit.xml',
23 classNameTemplate: '{classname} {title}',
24 suiteNameTemplate: '{title}',
25 titleTemplate: '{classname} {title}',
26 ancestorSeparator: ' ',
27 usePathForSuiteName: 'false',
28 addFileAttribute: 'false',
29 },
30 CLASSNAME_VAR: 'classname',
31 FILENAME_VAR: 'filename',
32 FILEPATH_VAR: 'filepath',
33 TITLE_VAR: 'title',
34 DISPLAY_NAME_VAR: 'displayName',
35};