Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 557ff54b2b435e5f1e789c6a8a4e1bebf2d7deb6 150 lines 5.6 kB view raw
1/* 2 * For a detailed explanation regarding each configuration property and type check, visit: 3 * https://jestjs.io/docs/configuration 4 */ 5 6module.exports = { 7 // Stop running tests after `n` failures 8 // bail: 0, 9 10 // Automatically clear mock calls, instances and results before every test 11 clearMocks: true, 12 13 // Indicates whether the coverage information should be collected while executing the test 14 collectCoverage: true, 15 16 // The directory where Jest should output its coverage files 17 coverageDirectory: 'coverage', 18 19 // An array of regexp pattern strings used to skip coverage collection 20 coveragePathIgnorePatterns: ['/node_modules/', '/test/'], 21 22 // Indicates which provider should be used to instrument code for coverage 23 // NB: this currently isn't working, but should be supported soon. (Would be 24 // much better to have built-in support in jest-light-runner for v8 coverage 25 // than to have to set up a separate babel compilation pipeline w/ istanbul, 26 // which is all jest-light-runner supports as of 2022-12-10.) See WIP PR 27 // https://github.com/nicolo-ribaudo/jest-light-runner/pull/13 28 coverageProvider: 'v8', 29 30 // A list of reporter names that Jest uses when writing coverage reports 31 // coverageReporters: [ 32 // "json", 33 // "text", 34 // "lcov", 35 // "clover" 36 // ], 37 38 // An object that configures minimum threshold enforcement for coverage results 39 // coverageThreshold: undefined, 40 41 // A path to a custom dependency extractor 42 // dependencyExtractor: undefined, 43 44 // Make calling deprecated APIs throw helpful error messages 45 // errorOnDeprecated: false, 46 47 // Force coverage collection from ignored files using an array of glob patterns 48 // forceCoverageMatch: [], 49 50 // A set of global variables that need to be available in all test environments 51 globals: {}, 52 53 extensionsToTreatAsEsm: ['.ts'], 54 55 // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. 56 // maxWorkers: "50%", 57 58 // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module 59 moduleNameMapper: {}, 60 61 // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader 62 // modulePathIgnorePatterns: [], 63 64 // Activates notifications for test results 65 // notify: false, 66 67 // An enum that specifies notification mode. Requires { notify: true } 68 // notifyMode: "failure-change", 69 70 //A preset that is used as a base for Jest's configuration 71 // preset: 'ts-jest/presets/js-with-ts-esm-legacy', 72 73 // Run tests from one or more projects 74 // projects: undefined, 75 76 // Use this configuration option to add custom reporters to Jest 77 // reporters: undefined, 78 79 // Automatically reset mock state before every test 80 // resetMocks: false, 81 82 // Reset the module registry before running each individual test 83 // resetModules: false, 84 85 // A path to a custom resolver 86 // resolver: undefined, 87 88 // Automatically restore mock state and implementation before every test 89 // restoreMocks: false, 90 91 // The root directory that Jest should scan for tests and modules within 92 // rootDir: undefined, 93 94 // Allows you to use a custom runner instead of Jest's default test runner 95 runner: 'jest-light-runner', 96 97 // The paths to modules that run some code to configure or set up the testing environment before each test 98 // setupFiles: [], 99 100 // A list of paths to modules that run some code to configure or set up the testing framework before each test 101 setupFilesAfterEnv: ['<rootDir>/test/extendExpect.ts'], 102 103 // The number of seconds after which a test is considered as slow and reported as such in the results. 104 // slowTestThreshold: 5, 105 106 // A list of paths to snapshot serializer modules Jest should use for snapshot testing 107 // snapshotSerializers: [], 108 109 // The test environment that will be used for testing 110 // testEnvironment: "jest-environment-node", 111 112 // Options that will be passed to the testEnvironment 113 // testEnvironmentOptions: {}, 114 115 // Adds a location field to test results 116 // testLocationInResults: false, 117 118 // The glob patterns Jest uses to detect test files 119 testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'], 120 121 // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped 122 testPathIgnorePatterns: ['/node_modules/', '/transpiled/', '.integ.test.ts$'], 123 124 // This option allows the use of a custom results processor 125 // testResultsProcessor: undefined, 126 127 // This option allows use of a custom test runner 128 // testRunner: "jest-circus/runner", 129 130 // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href 131 // testURL: "http://localhost", 132 133 // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" 134 // timers: "real", 135 136 // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation 137 // transformIgnorePatterns: [ 138 // "/node_modules/", 139 // "\\.pnp\\.[^\\/]+$" 140 // ], 141 142 // Indicates whether each individual test should be reported during the run 143 // verbose: undefined, 144 145 // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode 146 // watchPathIgnorePatterns: [], 147 148 // Whether to use watchman for file crawling 149 // watchman: true, 150};