@@ -5,7 +5,7 @@ exports[`config init should create a jest config file with cli options for confi
5
5
module.exports = {
6
6
testEnvironment : " node" ,
7
7
transform : {
8
- " ^.+.tsx?$" : [" ts-jest" ,{}],
8
+ " ^.+\\ .tsx?$" : [" ts-jest" ,{}],
9
9
},
10
10
} ;"
11
11
` ;
@@ -15,7 +15,7 @@ exports[`config init should create a jest config file with cli options for confi
15
15
export default {
16
16
testEnvironment : " node" ,
17
17
transform : {
18
- " ^.+.tsx?$" : [" ts-jest" ,{}],
18
+ " ^.+\\ .tsx?$" : [" ts-jest" ,{}],
19
19
},
20
20
} ;"
21
21
` ;
@@ -66,7 +66,7 @@ exports[`config init should update package.json for config type default when use
66
66
" version" : " 0.0.0-mock.0" ,
67
67
" jest" : {
68
68
" transform" : {
69
- " ^.+.tsx?$" : [
69
+ " ^.+\\\\ .tsx?$" : [
70
70
" ts-jest" ,
71
71
{}
72
72
]
@@ -82,7 +82,7 @@ exports[`config init should update package.json for config type js-with-babel-fu
82
82
" jest" : {
83
83
" transform" : {
84
84
" ^.+.jsx?$" : " babel-jest" ,
85
- " ^.+.tsx?$" : [
85
+ " ^.+\\\\ .tsx?$" : [
86
86
" ts-jest" ,
87
87
{
88
88
" tsconfig" : " tsconfig.test.json"
@@ -114,7 +114,7 @@ exports[`config migrate should generate transform config with existing transform
114
114
"module.exports = {
115
115
transform : {
116
116
' ^.+.jsx?$' : ' babel-jest' ,
117
- ' ^.+.tsx?$' : [
117
+ ' ^.+\\\\ .tsx?$' : [
118
118
' ts-jest' ,
119
119
{},
120
120
],
@@ -130,7 +130,7 @@ exports[`config migrate should generate transform config with existing transform
130
130
' ts-jest' ,
131
131
{},
132
132
],
133
- ' ^.+.tsx?$' : [
133
+ ' ^.+\\\\ .tsx?$' : [
134
134
' ts-jest' ,
135
135
{},
136
136
],
@@ -142,7 +142,7 @@ exports[`config migrate should generate transform config with existing transform
142
142
exports [` config migrate should migrate preset if valid preset value is used 1` ] = `
143
143
""jest": {
144
144
" transform" : {
145
- " ^.+.tsx?$" : [
145
+ " ^.+\\\\ .tsx?$" : [
146
146
" ts-jest" ,
147
147
{}
148
148
]
@@ -154,7 +154,7 @@ exports[`config migrate should migrate preset if valid preset value is used 1`]
154
154
exports [` config migrate should migrate preset if valid preset value is used 2` ] = `
155
155
""jest": {
156
156
" transform" : {
157
- " ^.+.tsx?$" : [
157
+ " ^.+\\\\ .tsx?$" : [
158
158
" ts-jest" ,
159
159
{}
160
160
]
@@ -166,7 +166,7 @@ exports[`config migrate should migrate preset if valid preset value is used 2`]
166
166
exports [` config migrate should migrate preset if valid preset value is used 3` ] = `
167
167
""jest": {
168
168
" transform" : {
169
- " ^.+.tsx?$" : [
169
+ " ^.+\\\\ .tsx?$" : [
170
170
" ts-jest" ,
171
171
{}
172
172
]
@@ -179,7 +179,7 @@ exports[`config migrate should reset testMatch if testRegex is used 1`] = `
179
179
""jest": {
180
180
" testRegex" : " foo-pattern" ,
181
181
" transform" : {
182
- " ^.+.tsx?$" : [
182
+ " ^.+\\\\ .tsx?$" : [
183
183
" ts-jest" ,
184
184
{}
185
185
]
@@ -194,7 +194,7 @@ exports[`config migrate should reset testMatch if testRegex is used 2`] = `
194
194
" foo-pattern"
195
195
],
196
196
" transform" : {
197
- " ^.+.tsx?$" : [
197
+ " ^.+\\\\ .tsx?$" : [
198
198
" ts-jest" ,
199
199
{}
200
200
]
@@ -210,7 +210,7 @@ exports[`config migrate should reset testMatch if testRegex is used 3`] = `
210
210
" **/__tests__/**/*.(spec|test).[tj]s?(x)"
211
211
],
212
212
" transform" : {
213
- " ^.+.tsx?$" : [
213
+ " ^.+\\\\ .tsx?$" : [
214
214
" ts-jest" ,
215
215
{}
216
216
]
@@ -225,7 +225,7 @@ exports[`config migrate should reset testMatch if testRegex is used 4`] = `
225
225
" **/__tests__/**/*.(spec|test).[tj]s?(x)"
226
226
],
227
227
" transform" : {
228
- " ^.+.tsx?$" : [
228
+ " ^.+\\\\ .tsx?$" : [
229
229
" ts-jest" ,
230
230
{}
231
231
]
@@ -238,7 +238,7 @@ exports[`config migrate should reset testMatch if testRegex is used 5`] = `
238
238
""jest": {
239
239
" testRegex" : " foo-pattern" ,
240
240
" transform" : {
241
- " ^.+.tsx?$" : [
241
+ " ^.+\\\\ .tsx?$" : [
242
242
" ts-jest" ,
243
243
{}
244
244
]
0 commit comments