Elffuss BraidHub

kikocis/continue public

9d8db5fc402e · 6.6 KiBRawPermalink
1/**
2 * For a detailed explanation regarding each configuration property, visit:
3 * https://jestjs.io/docs/configuration
4 */
5const config = {
6 // All imported modules in your tests should be mocked automatically
7 // automock: false,
8 // Stop running tests after `n` failures
9 // bail: 0,
10 // The directory where Jest should store its cached dependency information
11 // cacheDirectory: "/private/var/folders/n_/c3r8w0s95xl271j98y2lzhz80000gn/T/jest_dx",
12 // Automatically clear mock calls, instances, contexts and results before every test
13 clearMocks: true,
14 // Indicates whether the coverage information should be collected while executing the test
15 collectCoverage: true,
16 // An array of glob patterns indicating a set of files for which coverage information should be collected
17 // collectCoverageFrom: undefined,
18 // The directory where Jest should output its coverage files
19 coverageDirectory: "coverage",
20 // An array of regexp pattern strings used to skip coverage collection
21 // coveragePathIgnorePatterns: [
22 // "/node_modules/"
23 // ],
24 // Indicates which provider should be used to instrument code for coverage
25 coverageProvider: "v8",
26 // A list of reporter names that Jest uses when writing coverage reports
27 // coverageReporters: [
28 // "json",
29 // "text",
30 // "lcov",
31 // "clover"
32 // ],
33 // An object that configures minimum threshold enforcement for coverage results
34 // coverageThreshold: undefined,
35 // A path to a custom dependency extractor
36 // dependencyExtractor: undefined,
37 // Make calling deprecated APIs throw helpful error messages
38 // errorOnDeprecated: false,
39 // The default configuration for fake timers
40 // fakeTimers: {
41 // "enableGlobally": false
42 // },
43 // Force coverage collection from ignored files using an array of glob patterns
44 // forceCoverageMatch: [],
45 // A path to a module which exports an async function that is triggered once before all test suites
46 // globalSetup: undefined,
47 // A path to a module which exports an async function that is triggered once after all test suites
48 // globalTeardown: undefined,
49 // A set of global variables that need to be available in all test environments
50 // globals: {},
51 // 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.
52 // maxWorkers: "50%",
53 // An array of directory names to be searched recursively up from the requiring module's location
54 // moduleDirectories: [
55 // "node_modules"
56 // ],
57 // An array of file extensions your modules use
58 // moduleFileExtensions: [
59 // "js",
60 // "mjs",
61 // "cjs",
62 // "jsx",
63 // "ts",
64 // "tsx",
65 // "json",
66 // "node"
67 // ],
68 // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
69 // moduleNameMapper: {},
70 // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
71 // modulePathIgnorePatterns: [],
72 // Activates notifications for test results
73 // notify: false,
74 // An enum that specifies notification mode. Requires { notify: true }
75 // notifyMode: "failure-change",
76 // A preset that is used as a base for Jest's configuration
77 // preset: undefined,
78 // Run tests from one or more projects
79 // projects: undefined,
80 // Use this configuration option to add custom reporters to Jest
81 // reporters: undefined,
82 // Automatically reset mock state before every test
83 // resetMocks: false,
84 // Reset the module registry before running each individual test
85 // resetModules: false,
86 // A path to a custom resolver
87 // resolver: undefined,
88 // Automatically restore mock state and implementation before every test
89 // restoreMocks: false,
90 // The root directory that Jest should scan for tests and modules within
91 // rootDir: undefined,
92 // A list of paths to directories that Jest should use to search for files in
93 // roots: [
94 // "<rootDir>"
95 // ],
96 // Allows you to use a custom runner instead of Jest's default test runner
97 // runner: "jest-runner",
98 // The paths to modules that run some code to configure or set up the testing environment before each test
99 // setupFiles: [],
100 // A list of paths to modules that run some code to configure or set up the testing framework before each test
101 // setupFilesAfterEnv: [],
102 // The number of seconds after which a test is considered as slow and reported as such in the results.
103 // slowTestThreshold: 5,
104 // A list of paths to snapshot serializer modules Jest should use for snapshot testing
105 // snapshotSerializers: [],
106 // The test environment that will be used for testing
107 // testEnvironment: "jest-environment-node",
108 // Options that will be passed to the testEnvironment
109 // testEnvironmentOptions: {},
110 // Adds a location field to test results
111 // testLocationInResults: false,
112 // The glob patterns Jest uses to detect test files
113 // testMatch: [
114 // "**/__tests__/**/*.[jt]s?(x)",
115 // "**/?(*.)+(spec|test).[tj]s?(x)"
116 // ],
117 // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
118 // testPathIgnorePatterns: [
119 // "/node_modules/"
120 // ],
121 // The regexp pattern or array of patterns that Jest uses to detect test files
122 // testRegex: [],
123 // This option allows the use of a custom results processor
124 // testResultsProcessor: undefined,
125 // This option allows use of a custom test runner
126 // testRunner: "jest-circus/runner",
127 // A map from regular expressions to paths to transformers
128 // transform: undefined,
129 // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
130 // transformIgnorePatterns: [
131 // "/node_modules/",
132 // "\\.pnp\\.[^\\/]+$"
133 // ],
134 // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
135 // unmockedModulePathPatterns: undefined,
136 // Indicates whether each individual test should be reported during the run
137 // verbose: undefined,
138 // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
139 // watchPathIgnorePatterns: [],
140 // Whether to use watchman for file crawling
141 // watchman: true,
142};
143export default config;