@zohodesk/testinglibrary 0.1.8-exp-bdd-v10 → 0.1.8-exp.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.babelrc +21 -18
  2. package/.eslintrc.js +31 -31
  3. package/.prettierrc +5 -5
  4. package/README.md +17 -17
  5. package/bin/cli.js +2 -2
  6. package/build/bdd-framework/cli/commands/env.js +3 -3
  7. package/build/bdd-framework/cli/options.js +4 -4
  8. package/build/bdd-framework/cli/worker.js +3 -3
  9. package/build/bdd-framework/config/dir.js +6 -6
  10. package/build/bdd-framework/config/env.js +3 -3
  11. package/build/bdd-framework/config/index.js +2 -2
  12. package/build/bdd-framework/config/lang.js +2 -2
  13. package/build/bdd-framework/cucumber/buildStepDefinition.js +3 -3
  14. package/build/bdd-framework/cucumber/loadSnippetBuilder.js +3 -3
  15. package/build/bdd-framework/cucumber/loadSources.js +9 -9
  16. package/build/bdd-framework/gen/fixtures.js +8 -8
  17. package/build/bdd-framework/gen/formatter.js +7 -7
  18. package/build/bdd-framework/gen/i18n.js +3 -3
  19. package/build/bdd-framework/gen/index.js +2 -2
  20. package/build/bdd-framework/gen/testFile.js +16 -16
  21. package/build/bdd-framework/gen/testNode.js +3 -3
  22. package/build/bdd-framework/gen/testPoms.js +31 -31
  23. package/build/bdd-framework/hooks/scenario.js +6 -6
  24. package/build/bdd-framework/hooks/worker.js +4 -4
  25. package/build/bdd-framework/playwright/fixtureParameterNames.js +3 -3
  26. package/build/bdd-framework/playwright/getLocationInFile.js +4 -4
  27. package/build/bdd-framework/playwright/loadConfig.js +3 -3
  28. package/build/bdd-framework/playwright/testTypeImpl.js +11 -11
  29. package/build/bdd-framework/playwright/transform.js +4 -4
  30. package/build/bdd-framework/playwright/utils.js +2 -2
  31. package/build/bdd-framework/run/StepInvoker.js +2 -2
  32. package/build/bdd-framework/run/bddWorld.js +15 -15
  33. package/build/bdd-framework/snippets/index.js +2 -2
  34. package/build/bdd-framework/snippets/snippetSyntaxTs.js +4 -4
  35. package/build/bdd-framework/stepDefinitions/createBdd.js +2 -2
  36. package/build/bdd-framework/stepDefinitions/decorators/class.js +7 -7
  37. package/build/bdd-framework/stepDefinitions/decorators/steps.js +6 -6
  38. package/build/bdd-framework/stepDefinitions/defineStep.js +3 -3
  39. package/build/bdd-framework/stepDefinitions/stepConfig.js +5 -5
  40. package/build/bdd-framework/utils/exit.js +22 -18
  41. package/build/bdd-framework/utils/index.js +9 -9
  42. package/build/bdd-framework/utils/jsStringWrap.js +9 -9
  43. package/build/bdd-framework/utils/logger.js +2 -2
  44. package/build/core/playwright/builtInFixtures/addTags.js +1 -1
  45. package/build/core/playwright/builtInFixtures/context.js +12 -1
  46. package/build/core/playwright/builtInFixtures/i18N.js +33 -0
  47. package/build/core/playwright/builtInFixtures/index.js +8 -5
  48. package/build/core/playwright/builtInFixtures/page.js +53 -39
  49. package/build/core/playwright/builtInFixtures/unauthenticatedPage.js +18 -0
  50. package/build/core/playwright/clear-caches.js +19 -8
  51. package/build/core/playwright/codegen.js +4 -4
  52. package/build/core/playwright/constants/browserTypes.js +12 -0
  53. package/build/core/playwright/custom-commands.js +1 -1
  54. package/build/core/playwright/env-initializer.js +10 -6
  55. package/build/core/playwright/helpers/auth/accountLogin.js +18 -0
  56. package/build/core/playwright/helpers/auth/checkAuthCookies.js +47 -0
  57. package/build/core/playwright/helpers/auth/getUrlOrigin.js +13 -0
  58. package/build/core/playwright/helpers/auth/getUsers.js +72 -0
  59. package/build/core/playwright/helpers/auth/index.js +58 -0
  60. package/build/core/playwright/helpers/auth/loginSteps.js +36 -0
  61. package/build/core/playwright/helpers/configFileNameProvider.js +13 -0
  62. package/build/core/playwright/helpers/getUserFixtures.js +18 -0
  63. package/build/core/playwright/helpers/mergeObjects.js +13 -0
  64. package/build/core/playwright/index.js +68 -7
  65. package/build/core/playwright/readConfigFile.js +49 -39
  66. package/build/core/playwright/report-generator.js +7 -7
  67. package/build/core/playwright/setup/config-creator.js +13 -14
  68. package/build/core/playwright/setup/config-utils.js +37 -26
  69. package/build/core/playwright/tag-processor.js +2 -4
  70. package/build/core/playwright/test-runner.js +37 -42
  71. package/build/core/playwright/types.js +43 -0
  72. package/build/decorators.d.ts +1 -1
  73. package/build/decorators.js +16 -2
  74. package/build/index.d.ts +77 -60
  75. package/build/index.js +51 -9
  76. package/build/lib/cli.js +0 -3
  77. package/build/lib/post-install.js +15 -10
  78. package/build/parser/sample.feature +34 -34
  79. package/build/parser/sample.spec.js +18 -18
  80. package/build/setup-folder-structure/helper.js +2 -0
  81. package/build/setup-folder-structure/reportEnhancement/addonScript.html +24 -24
  82. package/build/setup-folder-structure/samples/auth-setup-sample.js +72 -72
  83. package/build/setup-folder-structure/samples/authUsers-sample.json +8 -8
  84. package/build/setup-folder-structure/samples/env-config-sample.json +20 -20
  85. package/build/setup-folder-structure/samples/git-ignore.sample.js +36 -36
  86. package/build/setup-folder-structure/samples/uat-config-sample.js +44 -44
  87. package/build/utils/cliArgsToObject.js +30 -26
  88. package/build/utils/fileUtils.js +4 -19
  89. package/build/utils/getFilePath.js +1 -2
  90. package/build/utils/rootPath.js +16 -9
  91. package/changelog.md +139 -131
  92. package/jest.config.js +63 -63
  93. package/npm-shrinkwrap.json +6469 -5980
  94. package/package.json +55 -54
  95. package/playwright.config.js +112 -112
  96. package/build/bdd-poc/core-runner/exportMethods.js +0 -20
  97. package/build/bdd-poc/core-runner/main.js +0 -10
  98. package/build/bdd-poc/core-runner/runner.js +0 -21
  99. package/build/bdd-poc/core-runner/stepDefinitions.js +0 -52
  100. package/build/bdd-poc/index.js +0 -26
  101. package/build/bdd-poc/test/cucumber/featureFileParer.js +0 -84
  102. package/build/bdd-poc/test/cucumber/parserCucumber.js +0 -15
  103. package/build/bdd-poc/test/stepGenerate/extractTestInputs.js +0 -37
  104. package/build/bdd-poc/test/stepGenerate/stepFileGenerate.js +0 -39
  105. package/build/bdd-poc/test/stepGenerate/stepsnippets.js +0 -58
  106. package/build/bdd-poc/test/tagsHandle.js +0 -69
  107. package/build/bdd-poc/test/testDataMap.js +0 -98
  108. package/build/bdd-poc/test/testStructure.js +0 -98
  109. package/build/bdd-poc/utils/stringManipulation.js +0 -26
@@ -5,15 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.checkIfFileExists = checkIfFileExists;
8
- exports.createFolderSync = createFolderSync;
9
8
  exports.deleteFile = deleteFile;
10
9
  exports.deleteFolder = deleteFolder;
11
10
  exports.readFileContents = readFileContents;
12
11
  exports.writeFileContents = writeFileContents;
13
- var _fs = _interopRequireWildcard(require("fs"));
12
+ var _fs = _interopRequireDefault(require("fs"));
14
13
  var _path = _interopRequireDefault(require("path"));
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ var _logger = require("./logger");
17
15
  function checkIfFileExists(file) {
18
16
  try {
19
17
  _fs.default.accessSync(file, _fs.default.constants.F_OK);
@@ -52,6 +50,8 @@ function deleteFile(filePath) {
52
50
  } catch (err) {
53
51
  throw new Error(`Error while deleting the test data file: ${filePath}`);
54
52
  }
53
+ } else {
54
+ _logger.Logger.log(_logger.Logger.INFO_TYPE, `File Does not Exist in the path ${filePath}`);
55
55
  }
56
56
  }
57
57
  function deleteFolder(folderPath) {
@@ -64,19 +64,4 @@ function deleteFolder(folderPath) {
64
64
  throw new Error(`Error while deleting the test data file: ${folderPath}`);
65
65
  }
66
66
  }
67
- }
68
- function resolveFilePath(...filePath) {
69
- var resolvedPath;
70
- for (let i = 0; i < filePath.length; i++) {
71
- resolvedPath = _path.default.resolve(resolvedPath, filePath[i]);
72
- }
73
- return resolvedPath;
74
- }
75
- function createFolderSync(folderPath, options = {}) {
76
- if ((0, _fs.existsSync)(folderPath)) {
77
- return null;
78
- }
79
- return (0, _fs.mkdirSync)(folderPath, {
80
- recursive: true
81
- });
82
67
  }
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = getFilePathWithExtension;
7
- exports.isWindows = void 0;
8
7
  var _os = require("os");
9
- const isWindows = exports.isWindows = (0, _os.platform)().toLowerCase() === 'win32';
8
+ const isWindows = (0, _os.platform)().toLowerCase() === 'win32';
10
9
  function getFilePathWithExtension(binName) {
11
10
  return isWindows ? `${binName}.cmd` : binName;
12
11
  }
@@ -12,24 +12,31 @@ var _path = _interopRequireDefault(require("path"));
12
12
  var _fs = _interopRequireDefault(require("fs"));
13
13
  var _logger = require("./logger");
14
14
  var _getFilePath = _interopRequireDefault(require("./getFilePath"));
15
- function findBinaryPath(directory, command) {
16
- const binaryPath = _path.default.join(directory, '.bin', (0, _getFilePath.default)(command));
17
- if (_fs.default.existsSync(binaryPath)) {
18
- return binaryPath;
15
+ // TODO: Publish and check this change of finding package.json working fine.
16
+ function findPath(directory, pathToFind) {
17
+ const filePath = _path.default.join(directory, pathToFind);
18
+ if (_fs.default.existsSync(filePath)) {
19
+ return filePath;
19
20
  }
20
-
21
- // Recursively search parent directories. Might be time-consuming ?? Can we look for npm module like which?
22
21
  const parentDir = _path.default.dirname(directory);
23
22
  if (parentDir === directory) {
24
23
  return null;
25
24
  }
26
- return findBinaryPath(parentDir, command);
25
+ return findPath(parentDir, pathToFind);
26
+ }
27
+ function findPackageJSON(startDir) {
28
+ return findPath(startDir, 'package.json');
29
+ }
30
+ function findBinaryPath(directory, command) {
31
+ const binaryPath = _path.default.join('.bin', (0, _getFilePath.default)(command));
32
+ return findPath(directory, binaryPath);
27
33
  }
28
34
  function getRootPath() {
29
- return _path.default.resolve(__dirname, '../', '../');
35
+ return findPackageJSON(_path.default.resolve(__dirname));
30
36
  }
31
37
  function getRootNodeModulesPath() {
32
- return _path.default.resolve(getRootPath(), 'node_modules');
38
+ const rootPath = getRootPath();
39
+ return _path.default.resolve(_path.default.dirname(rootPath), 'node_modules');
33
40
  }
34
41
  function getBinPath(command) {
35
42
  const packageNodeModulesPath = getRootNodeModulesPath();
package/changelog.md CHANGED
@@ -1,131 +1,139 @@
1
- # Testing Framework
2
-
3
- ## Framework that abstracts the configuration for playwright and Jest
4
- # 0.1.8
5
- **Issue Fixes**
6
- - Fix #9 Custom report generate Error on Windows
7
- - Add Tags annotations only on bddMode
8
-
9
- **Enhancements**
10
- - Added Failed steps in test summary
11
-
12
- # 0.1.7
13
- **Enhancements**
14
- - Added option to run teardown logic.
15
- - Added support for tag based filtering.
16
- - Playwright-bdd version updated to 5.6.0.
17
- - New fixture added to add tag as annotations in test report
18
-
19
- **Issue Fixes**
20
- - Edition command option. Fixed the edition tags not generated properly
21
-
22
- # 0.1.6
23
-
24
- **Enhancements**
25
- - New Command option Added `--edition`.
26
- - New Configuration Added `editionOrder`.
27
- `In uat.config.js, editionOrder: ['Free', 'Express']`
28
- - Cache Layer added
29
-
30
- **USAGE**
31
- - npm run uat --edition="Free"
32
-
33
-
34
-
35
- # 0.1.5
36
-
37
- **Enhancements**
38
-
39
- - Playwright version updated to `1.40.1`
40
- - And and But Support added
41
- - Added Code Suggestions support
42
- - Custom Reporter added. Now the report will be available in json format.
43
- - New Commands added.
44
-
45
- `- help: npx ZDTestingFramework help`
46
-
47
- - Will list down the commands available in the tool
48
-
49
- `- clearCaches: npx ZDTestingFramework clearCaches`
50
-
51
- - Will clear the exisiting cookies in the authentication setup
52
-
53
- **Issue Fixes**
54
-
55
- - Fixed Issue that occurs while quitting node process.
56
-
57
- # 0.1.4
58
-
59
- - `testIdAttribute` config added
60
- - Fixed issue while reading boolean configuration values
61
-
62
- # 0.1.3
63
-
64
- - uat config sample file updated with `bddMode` and `viewport` values
65
- - user configuration issue fix when the value is undefined
66
-
67
- # 0.1.2
68
-
69
- - Bdd version updated to `5.4.0`
70
- - Playwright version updated to `1.39.0`
71
-
72
- # 0.1.1
73
-
74
- - Fixed post install script error
75
- - Fixed error `@cucumber/gherkin` not found. Cause of this issue is updating @cucumber/cucumber to 9.5.0. Reverting this version to 9.2.0
76
- - Removed testing library exports
77
-
78
- # 0.1.0
79
-
80
- - Removed eslint as dev dependencies as it causes `npm aliases not supported error` for npm version < 6
81
-
82
- # 0.0.9
83
-
84
- - Video sized in report adjusted to viewport size
85
- - Changes in package.json scripts while setting up project
86
-
87
- # 0.0.8
88
-
89
- - Tags Support
90
- - Enable running without bddmode feature
91
- - viewport configuration
92
- - Internal Change - Code refactoring
93
-
94
- # 0.0.7
95
-
96
- - Removed react and react-dom as dependencies. Added this as peer dependency
97
-
98
- # 0.0.6
99
-
100
- ## Provided Initial Support for cucumber feature files
101
-
102
- - Playwright-bdd and cucumber added as dependencies
103
- - Added config bddMode which toggles the feature files processing
104
- - Added expect timeout and test timeout as an option
105
- - Decorators support for given, when and then. Typescript support needed to use this feature
106
-
107
- ## Internal Library change
108
-
109
- - Provided support for import/export statements
110
-
111
- # 0.0.5
112
-
113
- - Added Init command to initialize the folder structure and configuration for testing
114
- - Renamed config.json to env-config.json
115
- - Configured report file path directory and Handled Edge case in Cookies Handling
116
-
117
- # 0.0.4
118
-
119
- - Issue Fixes while loading the storage state
120
-
121
- # 0.0.3
122
-
123
- - Added Support for custom config generator based on user preferences
124
-
125
- # 0.0.2
126
-
127
- - Fix for Finding directories inside node_modules folder
128
-
129
- # 0.0.1
130
-
131
- - test and report command support
1
+ # Testing Framework
2
+
3
+ ## Framework that abstracts the configuration for playwright and Jest
4
+
5
+ # 0.1.8-exp.1
6
+ **Enhancements**
7
+ - Added option to specify browsers in command line.
8
+ - npm run uat -- --browsers='chrome,firefox'
9
+ - Playwright version updated to 1.41.1
10
+ - Added option to Skip Browser download
11
+
12
+ # 0.1.8
13
+ **Issue Fixes**
14
+ - Fix #9 Custom report generate Error on Windows
15
+ - Add Tags annotations only on bddMode
16
+
17
+ **Enhancements**
18
+ - Added Failed steps in test summary
19
+
20
+ # 0.1.7
21
+ **Enhancements**
22
+ - Added option to run teardown logic.
23
+ - Added support for tag based filtering.
24
+ - Playwright-bdd version updated to 5.6.0.
25
+ - New fixture added to add tag as annotations in test report
26
+
27
+ **Issue Fixes**
28
+ - Edition command option. Fixed the edition tags not generated properly
29
+
30
+ # 0.1.6
31
+
32
+ **Enhancements**
33
+ - New Command option Added `--edition`.
34
+ - New Configuration Added `editionOrder`.
35
+ `In uat.config.js, editionOrder: ['Free', 'Express']`
36
+ - Cache Layer added
37
+
38
+ **USAGE**
39
+ - npm run uat --edition="Free"
40
+
41
+
42
+
43
+ # 0.1.5
44
+
45
+ **Enhancements**
46
+
47
+ - Playwright version updated to `1.40.1`
48
+ - And and But Support added
49
+ - Added Code Suggestions support
50
+ - Custom Reporter added. Now the report will be available in json format.
51
+ - New Commands added.
52
+
53
+ `- help: npx ZDTestingFramework help`
54
+
55
+ - Will list down the commands available in the tool
56
+
57
+ `- clearCaches: npx ZDTestingFramework clearCaches`
58
+
59
+ - Will clear the exisiting cookies in the authentication setup
60
+
61
+ **Issue Fixes**
62
+
63
+ - Fixed Issue that occurs while quitting node process.
64
+
65
+ # 0.1.4
66
+
67
+ - `testIdAttribute` config added
68
+ - Fixed issue while reading boolean configuration values
69
+
70
+ # 0.1.3
71
+
72
+ - uat config sample file updated with `bddMode` and `viewport` values
73
+ - user configuration issue fix when the value is undefined
74
+
75
+ # 0.1.2
76
+
77
+ - Bdd version updated to `5.4.0`
78
+ - Playwright version updated to `1.39.0`
79
+
80
+ # 0.1.1
81
+
82
+ - Fixed post install script error
83
+ - Fixed error `@cucumber/gherkin` not found. Cause of this issue is updating @cucumber/cucumber to 9.5.0. Reverting this version to 9.2.0
84
+ - Removed testing library exports
85
+
86
+ # 0.1.0
87
+
88
+ - Removed eslint as dev dependencies as it causes `npm aliases not supported error` for npm version < 6
89
+
90
+ # 0.0.9
91
+
92
+ - Video sized in report adjusted to viewport size
93
+ - Changes in package.json scripts while setting up project
94
+
95
+ # 0.0.8
96
+
97
+ - Tags Support
98
+ - Enable running without bddmode feature
99
+ - viewport configuration
100
+ - Internal Change - Code refactoring
101
+
102
+ # 0.0.7
103
+
104
+ - Removed react and react-dom as dependencies. Added this as peer dependency
105
+
106
+ # 0.0.6
107
+
108
+ ## Provided Initial Support for cucumber feature files
109
+
110
+ - Playwright-bdd and cucumber added as dependencies
111
+ - Added config bddMode which toggles the feature files processing
112
+ - Added expect timeout and test timeout as an option
113
+ - Decorators support for given, when and then. Typescript support needed to use this feature
114
+
115
+ ## Internal Library change
116
+
117
+ - Provided support for import/export statements
118
+
119
+ # 0.0.5
120
+
121
+ - Added Init command to initialize the folder structure and configuration for testing
122
+ - Renamed config.json to env-config.json
123
+ - Configured report file path directory and Handled Edge case in Cookies Handling
124
+
125
+ # 0.0.4
126
+
127
+ - Issue Fixes while loading the storage state
128
+
129
+ # 0.0.3
130
+
131
+ - Added Support for custom config generator based on user preferences
132
+
133
+ # 0.0.2
134
+
135
+ - Fix for Finding directories inside node_modules folder
136
+
137
+ # 0.0.1
138
+
139
+ - test and report command support
package/jest.config.js CHANGED
@@ -1,64 +1,64 @@
1
- const path = require('path');
2
- const { existsSync } = require('fs');
3
- const appPath = process.cwd();
4
-
5
- const appGlobals = path.resolve(appPath, '__testUtils__', 'globals.js');
6
-
7
- module.exports = {
8
- rootDir: process.cwd(),
9
- testEnvironment: 'jsdom',
10
-
11
- setupFilesAfterEnv: [
12
- existsSync(appGlobals) && appGlobals,
13
- path.resolve(__dirname, 'src', 'core', 'jest', 'setup', 'index.js')
14
- ].filter(Boolean),
15
-
16
- transform: {
17
- '^.+\\.(js|jsx)$': path.resolve(
18
- __dirname,
19
- 'src',
20
- 'core',
21
- 'jest',
22
- 'preprocessor',
23
- 'jsPreprocessor.js'
24
- )
25
- },
26
-
27
- modulePathIgnorePatterns: ['/build/'],
28
-
29
- transformIgnorePatterns: [
30
- '/node_modules/(?!(@zohodesk)/)'
31
- ],
32
-
33
- testPathIgnorePatterns: [
34
- '/node_modules/',
35
- '/build/',
36
- '/uat/'
37
- ],
38
-
39
- watchPathIgnorePatterns: [
40
- '/node_modules/',
41
- '/build/'
42
- ],
43
-
44
- clearMocks: true,
45
- resetMocks: false,
46
-
47
- collectCoverage: true,
48
- collectCoverageFrom: ['src/**/*.js'],
49
- coverageDirectory: './build/cov',
50
- coverageReporters: ['lcov', 'json', 'html', 'json-summary', 'text'],
51
- coverageThreshold: {
52
- global: {
53
- branches: 100,
54
- functions: 100,
55
- lines: 100,
56
- statements: 100
57
- }
58
- },
59
- globals: {
60
- __DEVELOPMENT__: true,
61
- __DOCS__: false,
62
- __TEST__: true
63
- }
1
+ const path = require('path');
2
+ const { existsSync } = require('fs');
3
+ const appPath = process.cwd();
4
+
5
+ const appGlobals = path.resolve(appPath, '__testUtils__', 'globals.js');
6
+
7
+ module.exports = {
8
+ rootDir: process.cwd(),
9
+ testEnvironment: 'jsdom',
10
+
11
+ setupFilesAfterEnv: [
12
+ existsSync(appGlobals) && appGlobals,
13
+ path.resolve(__dirname, 'src', 'core', 'jest', 'setup', 'index.js')
14
+ ].filter(Boolean),
15
+
16
+ transform: {
17
+ '^.+\\.(js|jsx)$': path.resolve(
18
+ __dirname,
19
+ 'src',
20
+ 'core',
21
+ 'jest',
22
+ 'preprocessor',
23
+ 'jsPreprocessor.js'
24
+ )
25
+ },
26
+
27
+ modulePathIgnorePatterns: ['/build/'],
28
+
29
+ transformIgnorePatterns: [
30
+ '/node_modules/(?!(@zohodesk)/)'
31
+ ],
32
+
33
+ testPathIgnorePatterns: [
34
+ '/node_modules/',
35
+ '/build/',
36
+ '/uat/'
37
+ ],
38
+
39
+ watchPathIgnorePatterns: [
40
+ '/node_modules/',
41
+ '/build/'
42
+ ],
43
+
44
+ clearMocks: true,
45
+ resetMocks: false,
46
+
47
+ collectCoverage: true,
48
+ collectCoverageFrom: ['src/**/*.js'],
49
+ coverageDirectory: './build/cov',
50
+ coverageReporters: ['lcov', 'json', 'html', 'json-summary', 'text'],
51
+ coverageThreshold: {
52
+ global: {
53
+ branches: 100,
54
+ functions: 100,
55
+ lines: 100,
56
+ statements: 100
57
+ }
58
+ },
59
+ globals: {
60
+ __DEVELOPMENT__: true,
61
+ __DOCS__: false,
62
+ __TEST__: true
63
+ }
64
64
  };