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