Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ValidConfig.js 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _jestRegexUtil() {
  7. const data = require('jest-regex-util');
  8. _jestRegexUtil = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _jestValidate() {
  14. const data = require('jest-validate');
  15. _jestValidate = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. function _prettyFormat() {
  21. const data = require('pretty-format');
  22. _prettyFormat = function () {
  23. return data;
  24. };
  25. return data;
  26. }
  27. var _constants = require('./constants');
  28. /**
  29. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  30. *
  31. * This source code is licensed under the MIT license found in the
  32. * LICENSE file in the root directory of this source tree.
  33. */
  34. const NODE_MODULES_REGEXP = (0, _jestRegexUtil().replacePathSepForRegex)(
  35. _constants.NODE_MODULES
  36. );
  37. const initialOptions = {
  38. automock: false,
  39. bail: (0, _jestValidate().multipleValidOptions)(false, 0),
  40. cache: true,
  41. cacheDirectory: '/tmp/user/jest',
  42. changedFilesWithAncestor: false,
  43. changedSince: 'master',
  44. ci: false,
  45. clearMocks: false,
  46. collectCoverage: true,
  47. collectCoverageFrom: ['src', '!public'],
  48. collectCoverageOnlyFrom: {
  49. '<rootDir>/this-directory-is-covered/Covered.js': true
  50. },
  51. coverageDirectory: 'coverage',
  52. coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
  53. coverageProvider: 'v8',
  54. coverageReporters: ['json', 'text', 'lcov', 'clover'],
  55. coverageThreshold: {
  56. global: {
  57. branches: 50,
  58. functions: 100,
  59. lines: 100,
  60. statements: 100
  61. }
  62. },
  63. dependencyExtractor: '<rootDir>/dependencyExtractor.js',
  64. detectLeaks: false,
  65. detectOpenHandles: false,
  66. displayName: (0, _jestValidate().multipleValidOptions)('test-config', {
  67. color: 'blue',
  68. name: 'test-config'
  69. }),
  70. errorOnDeprecated: false,
  71. expand: false,
  72. extensionsToTreatAsEsm: [],
  73. extraGlobals: [],
  74. filter: '<rootDir>/filter.js',
  75. forceCoverageMatch: ['**/*.t.js'],
  76. forceExit: false,
  77. globalSetup: 'setup.js',
  78. globalTeardown: 'teardown.js',
  79. globals: {
  80. __DEV__: true
  81. },
  82. haste: {
  83. computeSha1: true,
  84. defaultPlatform: 'ios',
  85. enableSymlinks: false,
  86. forceNodeFilesystemAPI: false,
  87. hasteImplModulePath: '<rootDir>/haste_impl.js',
  88. hasteMapModulePath: '',
  89. platforms: ['ios', 'android'],
  90. throwOnModuleCollision: false
  91. },
  92. injectGlobals: true,
  93. json: false,
  94. lastCommit: false,
  95. listTests: false,
  96. logHeapUsage: true,
  97. maxConcurrency: 5,
  98. maxWorkers: '50%',
  99. moduleDirectories: ['node_modules'],
  100. moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
  101. moduleLoader: '<rootDir>',
  102. moduleNameMapper: {
  103. '^React$': '<rootDir>/node_modules/react'
  104. },
  105. modulePathIgnorePatterns: ['<rootDir>/build/'],
  106. modulePaths: ['/shared/vendor/modules'],
  107. name: 'string',
  108. noStackTrace: false,
  109. notify: false,
  110. notifyMode: 'failure-change',
  111. onlyChanged: false,
  112. onlyFailures: false,
  113. passWithNoTests: false,
  114. preset: 'react-native',
  115. prettierPath: '<rootDir>/node_modules/prettier',
  116. projects: ['project-a', 'project-b/'],
  117. reporters: [
  118. 'default',
  119. 'custom-reporter-1',
  120. [
  121. 'custom-reporter-2',
  122. {
  123. configValue: true
  124. }
  125. ]
  126. ],
  127. resetMocks: false,
  128. resetModules: false,
  129. resolver: '<rootDir>/resolver.js',
  130. restoreMocks: false,
  131. rootDir: '/',
  132. roots: ['<rootDir>'],
  133. runTestsByPath: false,
  134. runner: 'jest-runner',
  135. setupFiles: ['<rootDir>/setup.js'],
  136. setupFilesAfterEnv: ['<rootDir>/testSetupFile.js'],
  137. silent: true,
  138. skipFilter: false,
  139. skipNodeResolution: false,
  140. slowTestThreshold: 5,
  141. snapshotFormat: _prettyFormat().DEFAULT_OPTIONS,
  142. snapshotResolver: '<rootDir>/snapshotResolver.js',
  143. snapshotSerializers: ['my-serializer-module'],
  144. testEnvironment: 'jest-environment-jsdom',
  145. testEnvironmentOptions: {
  146. userAgent: 'Agent/007'
  147. },
  148. testFailureExitCode: 1,
  149. testLocationInResults: false,
  150. testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
  151. testNamePattern: 'test signature',
  152. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  153. testRegex: (0, _jestValidate().multipleValidOptions)(
  154. '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
  155. ['/__tests__/\\.test\\.[jt]sx?$', '/__tests__/\\.spec\\.[jt]sx?$']
  156. ),
  157. testResultsProcessor: 'processor-node-module',
  158. testRunner: 'circus',
  159. testSequencer: '@jest/test-sequencer',
  160. testTimeout: 5000,
  161. testURL: 'http://localhost',
  162. timers: 'real',
  163. transform: {
  164. '\\.js$': '<rootDir>/preprocessor.js'
  165. },
  166. transformIgnorePatterns: [NODE_MODULES_REGEXP],
  167. unmockedModulePathPatterns: ['mock'],
  168. updateSnapshot: true,
  169. useStderr: false,
  170. verbose: false,
  171. watch: false,
  172. watchAll: false,
  173. watchPathIgnorePatterns: ['<rootDir>/e2e/'],
  174. watchPlugins: [
  175. 'path/to/yourWatchPlugin',
  176. [
  177. 'jest-watch-typeahead/filename',
  178. {
  179. key: 'k',
  180. prompt: 'do something with my custom prompt'
  181. }
  182. ]
  183. ],
  184. watchman: true
  185. };
  186. var _default = initialOptions;
  187. exports.default = _default;