Skip to content

Commit 5227939

Browse files
committed
jest.config: adjust indentation
The project's default is to use 4 spaces, as that is VS Code's default. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent ff496e9 commit 5227939

1 file changed

Lines changed: 136 additions & 136 deletions

File tree

jest.config.js

Lines changed: 136 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -4,192 +4,192 @@
44
*/
55

66
module.exports = {
7-
// All imported modules in your tests should be mocked automatically
8-
// automock: false,
7+
// All imported modules in your tests should be mocked automatically
8+
// automock: false,
99

10-
// Stop running tests after `n` failures
11-
// bail: 0,
10+
// Stop running tests after `n` failures
11+
// bail: 0,
1212

13-
// The directory where Jest should store its cached dependency information
14-
// cacheDirectory: "/tmp/jest_rs",
13+
// The directory where Jest should store its cached dependency information
14+
// cacheDirectory: "/tmp/jest_rs",
1515

16-
// Automatically clear mock calls, instances, contexts and results before every test
17-
// clearMocks: false,
16+
// Automatically clear mock calls, instances, contexts and results before every test
17+
// clearMocks: false,
1818

19-
// Indicates whether the coverage information should be collected while executing the test
20-
// collectCoverage: false,
19+
// Indicates whether the coverage information should be collected while executing the test
20+
// collectCoverage: false,
2121

22-
// An array of glob patterns indicating a set of files for which coverage information should be collected
23-
// collectCoverageFrom: undefined,
22+
// An array of glob patterns indicating a set of files for which coverage information should be collected
23+
// collectCoverageFrom: undefined,
2424

25-
// The directory where Jest should output its coverage files
26-
// coverageDirectory: undefined,
25+
// The directory where Jest should output its coverage files
26+
// coverageDirectory: undefined,
2727

28-
// An array of regexp pattern strings used to skip coverage collection
29-
// coveragePathIgnorePatterns: [
30-
// "/node_modules/"
31-
// ],
28+
// An array of regexp pattern strings used to skip coverage collection
29+
// coveragePathIgnorePatterns: [
30+
// "/node_modules/"
31+
// ],
3232

33-
// Indicates which provider should be used to instrument code for coverage
34-
coverageProvider: "v8",
33+
// Indicates which provider should be used to instrument code for coverage
34+
coverageProvider: "v8",
3535

36-
// A list of reporter names that Jest uses when writing coverage reports
37-
// coverageReporters: [
38-
// "json",
39-
// "text",
40-
// "lcov",
41-
// "clover"
42-
// ],
36+
// A list of reporter names that Jest uses when writing coverage reports
37+
// coverageReporters: [
38+
// "json",
39+
// "text",
40+
// "lcov",
41+
// "clover"
42+
// ],
4343

44-
// An object that configures minimum threshold enforcement for coverage results
45-
// coverageThreshold: undefined,
44+
// An object that configures minimum threshold enforcement for coverage results
45+
// coverageThreshold: undefined,
4646

47-
// A path to a custom dependency extractor
48-
// dependencyExtractor: undefined,
47+
// A path to a custom dependency extractor
48+
// dependencyExtractor: undefined,
4949

50-
// Make calling deprecated APIs throw helpful error messages
51-
// errorOnDeprecated: false,
50+
// Make calling deprecated APIs throw helpful error messages
51+
// errorOnDeprecated: false,
5252

53-
// The default configuration for fake timers
54-
// fakeTimers: {
55-
// "enableGlobally": false
56-
// },
53+
// The default configuration for fake timers
54+
// fakeTimers: {
55+
// "enableGlobally": false
56+
// },
5757

58-
// Force coverage collection from ignored files using an array of glob patterns
59-
// forceCoverageMatch: [],
58+
// Force coverage collection from ignored files using an array of glob patterns
59+
// forceCoverageMatch: [],
6060

61-
// A path to a module which exports an async function that is triggered once before all test suites
62-
// globalSetup: undefined,
61+
// A path to a module which exports an async function that is triggered once before all test suites
62+
// globalSetup: undefined,
6363

64-
// A path to a module which exports an async function that is triggered once after all test suites
65-
// globalTeardown: undefined,
64+
// A path to a module which exports an async function that is triggered once after all test suites
65+
// globalTeardown: undefined,
6666

67-
// A set of global variables that need to be available in all test environments
68-
// globals: {},
67+
// A set of global variables that need to be available in all test environments
68+
// globals: {},
6969

70-
// 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.
71-
// maxWorkers: "50%",
70+
// 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.
71+
// maxWorkers: "50%",
7272

73-
// An array of directory names to be searched recursively up from the requiring module's location
74-
// moduleDirectories: [
75-
// "node_modules"
76-
// ],
73+
// An array of directory names to be searched recursively up from the requiring module's location
74+
// moduleDirectories: [
75+
// "node_modules"
76+
// ],
7777

78-
// An array of file extensions your modules use
79-
// moduleFileExtensions: [
80-
// "js",
81-
// "mjs",
82-
// "cjs",
83-
// "jsx",
84-
// "ts",
85-
// "tsx",
86-
// "json",
87-
// "node"
88-
// ],
78+
// An array of file extensions your modules use
79+
// moduleFileExtensions: [
80+
// "js",
81+
// "mjs",
82+
// "cjs",
83+
// "jsx",
84+
// "ts",
85+
// "tsx",
86+
// "json",
87+
// "node"
88+
// ],
8989

90-
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91-
// moduleNameMapper: {},
90+
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91+
// moduleNameMapper: {},
9292

93-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
94-
// modulePathIgnorePatterns: [],
93+
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
94+
// modulePathIgnorePatterns: [],
9595

96-
// Activates notifications for test results
97-
// notify: false,
96+
// Activates notifications for test results
97+
// notify: false,
9898

99-
// An enum that specifies notification mode. Requires { notify: true }
100-
// notifyMode: "failure-change",
99+
// An enum that specifies notification mode. Requires { notify: true }
100+
// notifyMode: "failure-change",
101101

102-
// A preset that is used as a base for Jest's configuration
103-
// preset: undefined,
102+
// A preset that is used as a base for Jest's configuration
103+
// preset: undefined,
104104

105-
// Run tests from one or more projects
106-
// projects: undefined,
105+
// Run tests from one or more projects
106+
// projects: undefined,
107107

108-
// Use this configuration option to add custom reporters to Jest
109-
// reporters: undefined,
108+
// Use this configuration option to add custom reporters to Jest
109+
// reporters: undefined,
110110

111-
// Automatically reset mock state before every test
112-
// resetMocks: false,
111+
// Automatically reset mock state before every test
112+
// resetMocks: false,
113113

114-
// Reset the module registry before running each individual test
115-
// resetModules: false,
114+
// Reset the module registry before running each individual test
115+
// resetModules: false,
116116

117-
// A path to a custom resolver
118-
// resolver: undefined,
117+
// A path to a custom resolver
118+
// resolver: undefined,
119119

120-
// Automatically restore mock state and implementation before every test
121-
// restoreMocks: false,
120+
// Automatically restore mock state and implementation before every test
121+
// restoreMocks: false,
122122

123-
// The root directory that Jest should scan for tests and modules within
124-
// rootDir: undefined,
123+
// The root directory that Jest should scan for tests and modules within
124+
// rootDir: undefined,
125125

126-
// A list of paths to directories that Jest should use to search for files in
127-
// roots: [
128-
// "<rootDir>"
129-
// ],
126+
// A list of paths to directories that Jest should use to search for files in
127+
// roots: [
128+
// "<rootDir>"
129+
// ],
130130

131-
// Allows you to use a custom runner instead of Jest's default test runner
132-
// runner: "jest-runner",
131+
// Allows you to use a custom runner instead of Jest's default test runner
132+
// runner: "jest-runner",
133133

134-
// The paths to modules that run some code to configure or set up the testing environment before each test
135-
// setupFiles: [],
134+
// The paths to modules that run some code to configure or set up the testing environment before each test
135+
// setupFiles: [],
136136

137-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
138-
// setupFilesAfterEnv: [],
137+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
138+
// setupFilesAfterEnv: [],
139139

140-
// The number of seconds after which a test is considered as slow and reported as such in the results.
141-
// slowTestThreshold: 5,
140+
// The number of seconds after which a test is considered as slow and reported as such in the results.
141+
// slowTestThreshold: 5,
142142

143-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
144-
// snapshotSerializers: [],
143+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
144+
// snapshotSerializers: [],
145145

146-
// The test environment that will be used for testing
147-
// testEnvironment: "jest-environment-node",
146+
// The test environment that will be used for testing
147+
// testEnvironment: "jest-environment-node",
148148

149-
// Options that will be passed to the testEnvironment
150-
// testEnvironmentOptions: {},
149+
// Options that will be passed to the testEnvironment
150+
// testEnvironmentOptions: {},
151151

152-
// Adds a location field to test results
153-
// testLocationInResults: false,
152+
// Adds a location field to test results
153+
// testLocationInResults: false,
154154

155-
// The glob patterns Jest uses to detect test files
156-
// testMatch: [
157-
// "**/__tests__/**/*.[jt]s?(x)",
158-
// "**/?(*.)+(spec|test).[tj]s?(x)"
159-
// ],
155+
// The glob patterns Jest uses to detect test files
156+
// testMatch: [
157+
// "**/__tests__/**/*.[jt]s?(x)",
158+
// "**/?(*.)+(spec|test).[tj]s?(x)"
159+
// ],
160160

161-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162-
// testPathIgnorePatterns: [
163-
// "/node_modules/"
164-
// ],
161+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162+
// testPathIgnorePatterns: [
163+
// "/node_modules/"
164+
// ],
165165

166-
// The regexp pattern or array of patterns that Jest uses to detect test files
167-
// testRegex: [],
166+
// The regexp pattern or array of patterns that Jest uses to detect test files
167+
// testRegex: [],
168168

169-
// This option allows the use of a custom results processor
170-
// testResultsProcessor: undefined,
169+
// This option allows the use of a custom results processor
170+
// testResultsProcessor: undefined,
171171

172-
// This option allows use of a custom test runner
173-
// testRunner: "jest-circus/runner",
172+
// This option allows use of a custom test runner
173+
// testRunner: "jest-circus/runner",
174174

175-
// A map from regular expressions to paths to transformers
176-
// transform: undefined,
175+
// A map from regular expressions to paths to transformers
176+
// transform: undefined,
177177

178-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
179-
// transformIgnorePatterns: [
180-
// "/node_modules/",
181-
// "\\.pnp\\.[^\\/]+$"
182-
// ],
178+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
179+
// transformIgnorePatterns: [
180+
// "/node_modules/",
181+
// "\\.pnp\\.[^\\/]+$"
182+
// ],
183183

184-
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185-
// unmockedModulePathPatterns: undefined,
184+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185+
// unmockedModulePathPatterns: undefined,
186186

187-
// Indicates whether each individual test should be reported during the run
188-
// verbose: undefined,
187+
// Indicates whether each individual test should be reported during the run
188+
// verbose: undefined,
189189

190-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191-
// watchPathIgnorePatterns: [],
190+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191+
// watchPathIgnorePatterns: [],
192192

193-
// Whether to use watchman for file crawling
194-
// watchman: true,
193+
// Whether to use watchman for file crawling
194+
// watchman: true,
195195
};

0 commit comments

Comments
 (0)