File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ exports[`config init should create a jest config file with cli options for confi
25
25
module.exports = {
26
26
testEnvironment : " jsdom" ,
27
27
transform : {
28
- " ^.+.jsx?$" : " babel-jest" ,
28
+ " ^.+\\ .jsx?$" : " babel-jest" ,
29
29
},
30
30
} ;"
31
31
` ;
@@ -35,7 +35,7 @@ exports[`config init should create a jest config file with cli options for confi
35
35
export default {
36
36
testEnvironment : " jsdom" ,
37
37
transform : {
38
- " ^.+.jsx?$" : " babel-jest" ,
38
+ " ^.+\\ .jsx?$" : " babel-jest" ,
39
39
},
40
40
} ;"
41
41
` ;
@@ -81,7 +81,7 @@ exports[`config init should update package.json for config type js-with-babel-fu
81
81
" version" : " 0.0.0-mock.0" ,
82
82
" jest" : {
83
83
" transform" : {
84
- " ^.+.jsx?$" : " babel-jest" ,
84
+ " ^.+\\\\ .jsx?$" : " babel-jest" ,
85
85
" ^.+\\\\ .tsx?$" : [
86
86
" ts-jest" ,
87
87
{
@@ -113,7 +113,7 @@ exports[`config init should update package.json for config type js-with-ts-full-
113
113
exports [` config migrate should generate transform config with existing transform options for js-with-babel 1` ] = `
114
114
"module.exports = {
115
115
transform : {
116
- ' ^.+.jsx?$' : ' babel-jest' ,
116
+ ' ^.+\\\\ .jsx?$' : ' babel-jest' ,
117
117
' ^.+\\\\ .tsx?$' : [
118
118
' ts-jest' ,
119
119
{},
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const TS_TRANSFORM_PATTERN = '^.+\\.tsx?$'
7
7
export const ESM_TS_TRANSFORM_PATTERN = '^.+\\.m?tsx?$'
8
8
export const TS_JS_TRANSFORM_PATTERN = '^.+\\.[tj]sx?$'
9
9
export const ESM_TS_JS_TRANSFORM_PATTERN = '^.+\\.m?[tj]sx?$'
10
- export const JS_TRANSFORM_PATTERN = '^.+.jsx?$'
10
+ export const JS_TRANSFORM_PATTERN = '^.+\\ .jsx?$'
11
11
export const ESM_JS_TRANSFORM_PATTERN = '^.+\\.m?jsx?$'
12
12
// `extensionsToTreatAsEsm` will throw error with `.mjs`
13
13
export const TS_EXT_TO_TREAT_AS_ESM = [ '.ts' , '.tsx' , '.mts' ]
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ exports[`create-jest-preset CJS presets createDefaultPreset should return preset
29
29
exports [` create-jest-preset CJS presets createJsWithBabelLegacyPreset should return preset config 1` ] = `
30
30
{
31
31
" transform" : {
32
- " ^.+.jsx?$" : " babel-jest" ,
32
+ " ^.+\\ .jsx?$" : " babel-jest" ,
33
33
" ^.+\\ .tsx?$" : [
34
34
" ts-jest/legacy" ,
35
35
{
@@ -46,7 +46,7 @@ exports[`create-jest-preset CJS presets createJsWithBabelLegacyPreset should ret
46
46
exports [` create-jest-preset CJS presets createJsWithBabelPreset should return preset config 1` ] = `
47
47
{
48
48
" transform" : {
49
- " ^.+.jsx?$" : " babel-jest" ,
49
+ " ^.+\\ .jsx?$" : " babel-jest" ,
50
50
" ^.+\\ .tsx?$" : [
51
51
" ts-jest" ,
52
52
{
You can’t perform that action at this time.
0 commit comments