File tree Expand file tree Collapse file tree 3 files changed +6
-25
lines changed Expand file tree Collapse file tree 3 files changed +6
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ let mocks = {};
18
18
try {
19
19
require . resolve ( '@react/react-spectrum/Button' ) ;
20
20
} catch ( err ) {
21
- mocks [ '^@react\ /.*' ] = 'identity-obj-proxy' ;
21
+ mocks [ '^@react/.*' ] = 'identity-obj-proxy' ;
22
22
}
23
23
24
24
module . exports = {
@@ -101,7 +101,6 @@ module.exports = {
101
101
moduleNameMapper : {
102
102
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' : '<rootDir>/__mocks__/fileMock.js' ,
103
103
'\\.(css|styl)$' : 'identity-obj-proxy' ,
104
- '\\.\./Icon/.*$' : '<rootDir>/__mocks__/iconMock.js' ,
105
104
...mocks
106
105
} ,
107
106
@@ -172,13 +171,13 @@ module.exports = {
172
171
// The glob patterns Jest uses to detect test files
173
172
// see issue https://github.com/facebook/jest/issues/7108
174
173
testMatch : [
175
- " **/packages/**/*.test.[tj]s?(x)"
174
+ ' **/packages/**/*.test.[tj]s?(x)'
176
175
] ,
177
176
178
177
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
179
178
testPathIgnorePatterns : [
180
- " /node_modules/" ,
181
- " \\.ssr\\.test\\.[tj]sx?$"
179
+ ' /node_modules/' ,
180
+ ' \\.ssr\\.test\\.[tj]sx?$'
182
181
]
183
182
184
183
// The regexp pattern or array of patterns that Jest uses to detect test files
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ module.exports = {
21
21
// A map from regular expressions to module names that allow to stub out resources with a single module
22
22
moduleNameMapper : {
23
23
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' : '<rootDir>/__mocks__/fileMock.js' ,
24
- '\\.(css|styl)$' : 'identity-obj-proxy' ,
25
- '\\.\./Icon/.*$' : '<rootDir>/__mocks__/iconMock.js'
24
+ '\\.(css|styl)$' : 'identity-obj-proxy'
26
25
} ,
27
26
28
27
// Run tests from one or more projects
@@ -43,6 +42,6 @@ module.exports = {
43
42
44
43
// The glob patterns Jest uses to detect test files
45
44
testMatch : [
46
- " **/packages/**/*.ssr.test.[tj]s?(x)"
45
+ ' **/packages/**/*.ssr.test.[tj]s?(x)'
47
46
]
48
47
} ;
You can’t perform that action at this time.
0 commit comments