Skip to content

Commit 56ddea8

Browse files
committed
refactor: removes comments from Jest config file
1 parent ebb11d1 commit 56ddea8

File tree

1 file changed

+0
-176
lines changed

1 file changed

+0
-176
lines changed

jest.config.js

Lines changed: 0 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,11 @@
1-
// For a detailed explanation regarding each configuration property, visit:
2-
// https://jestjs.io/docs/en/configuration.html
3-
41
module.exports = {
5-
// All imported modules in your tests should be mocked automatically
6-
// automock: false,
7-
8-
// Stop running tests after `n` failures
9-
// bail: 0,
10-
11-
// Respect "browser" field in package.json when resolving modules
12-
// browser: false,
13-
14-
// The directory where Jest should store its cached dependency information
15-
// cacheDirectory: "/private/var/folders/q8/mn1b6vvj7zd6m71dmdqkzvs0x2km5c/T/jest_g4yhf0",
16-
17-
// Automatically clear mock calls and instances between every test
182
clearMocks: true,
19-
20-
// Indicates whether the coverage information should be collected while executing the test
213
collectCoverage: false,
22-
23-
// An array of glob patterns indicating a set of files for which coverage information should be collected
244
collectCoverageFrom: [
255
'src/**/src/*.{js,ts,tsx}',
266
'!src/**/src/{array,hash-table}.{js,ts,tsx}',
277
],
28-
29-
// The directory where Jest should output its coverage files
308
coverageDirectory: 'coverage',
31-
32-
// An array of regexp pattern strings used to skip coverage collection
33-
// coveragePathIgnorePatterns: [
34-
// "/node_modules/"
35-
// ],
36-
37-
// A list of reporter names that Jest uses when writing coverage reports
38-
// coverageReporters: [
39-
// "json",
40-
// "text",
41-
// "lcov",
42-
// "clover"
43-
// ],
44-
45-
// An object that configures minimum threshold enforcement for coverage results
469
coverageThreshold: {
4710
global: {
4811
branches: 95,
@@ -51,145 +14,6 @@ module.exports = {
5114
statements: 95,
5215
},
5316
},
54-
55-
// A path to a custom dependency extractor
56-
// dependencyExtractor: null,
57-
58-
// Make calling deprecated APIs throw helpful error messages
59-
// errorOnDeprecated: false,
60-
61-
// Force coverage collection from ignored files using an array of glob patterns
62-
// forceCoverageMatch: [],
63-
64-
// A path to a module which exports an async function that is triggered once before all test suites
65-
// globalSetup: null,
66-
67-
// A path to a module which exports an async function that is triggered once after all test suites
68-
// globalTeardown: null,
69-
70-
// A set of global variables that need to be available in all test environments
71-
// globals: {},
72-
73-
// 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.
74-
// maxWorkers: "50%",
75-
76-
// An array of directory names to be searched recursively up from the requiring module's location
77-
// moduleDirectories: [
78-
// "node_modules"
79-
// ],
80-
81-
// An array of file extensions your modules use
82-
// moduleFileExtensions: [
83-
// "js",
84-
// "json",
85-
// "jsx",
86-
// "ts",
87-
// "tsx",
88-
// "node"
89-
// ],
90-
91-
// A map from regular expressions to module names that allow to stub out resources with a single module
92-
// moduleNameMapper: {},
93-
94-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
95-
// modulePathIgnorePatterns: [],
96-
97-
// Activates notifications for test results
98-
// notify: false,
99-
100-
// An enum that specifies notification mode. Requires { notify: true }
101-
// notifyMode: "failure-change",
102-
103-
// A preset that is used as a base for Jest's configuration
104-
// preset: null,
105-
106-
// Run tests from one or more projects
107-
// projects: null,
108-
109-
// Use this configuration option to add custom reporters to Jest
110-
// reporters: undefined,
111-
112-
// Automatically reset mock state between every test
113-
// resetMocks: false,
114-
115-
// Reset the module registry before running each individual test
116-
// resetModules: false,
117-
118-
// A path to a custom resolver
119-
// resolver: null,
120-
121-
// Automatically restore mock state between every test
122-
// restoreMocks: false,
123-
124-
// The root directory that Jest should scan for tests and modules within
125-
// rootDir: null,
126-
127-
// A list of paths to directories that Jest should use to search for files in
128-
// roots: [
129-
// "<rootDir>"
130-
// ],
131-
132-
// Allows you to use a custom runner instead of Jest's default test runner
133-
// runner: "jest-runner",
134-
135-
// The paths to modules that run some code to configure or set up the testing environment before each test
136-
// setupFiles: [],
137-
138-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
139-
// setupFilesAfterEnv: [],
140-
141-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
142-
// snapshotSerializers: [],
143-
144-
// The test environment that will be used for testing
14517
testEnvironment: 'node',
146-
147-
// Options that will be passed to the testEnvironment
148-
// testEnvironmentOptions: {},
149-
150-
// Adds a location field to test results
151-
// testLocationInResults: false,
152-
153-
// The glob patterns Jest uses to detect test files
15418
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
155-
156-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
157-
// testPathIgnorePatterns: [
158-
// "/node_modules/"
159-
// ],
160-
161-
// The regexp pattern or array of patterns that Jest uses to detect test files
162-
// testRegex: [],
163-
164-
// This option allows the use of a custom results processor
165-
// testResultsProcessor: null,
166-
167-
// This option allows use of a custom test runner
168-
// testRunner: "jasmine2",
169-
170-
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
171-
// testURL: "http://localhost",
172-
173-
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
174-
// timers: "real",
175-
176-
// A map from regular expressions to paths to transformers
177-
// transform: null,
178-
179-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
180-
// transformIgnorePatterns: [
181-
// "/node_modules/"
182-
// ],
183-
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,
186-
187-
// Indicates whether each individual test should be reported during the run
188-
// verbose: null,
189-
190-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191-
// watchPathIgnorePatterns: [],
192-
193-
// Whether to use watchman for file crawling
194-
// watchman: true,
19519
}

0 commit comments

Comments
 (0)