@@ -5,7 +5,7 @@ exports[`config init should create a jest config file with cli options for confi
55module.exports = {
66 testEnvironment : " node" ,
77 transform : {
8- " ^.+.tsx?$" : [" ts-jest" ,{}],
8+ " ^.+\\ .tsx?$" : [" ts-jest" ,{}],
99 },
1010} ;"
1111` ;
@@ -15,7 +15,7 @@ exports[`config init should create a jest config file with cli options for confi
1515export default {
1616 testEnvironment : " node" ,
1717 transform : {
18- " ^.+.tsx?$" : [" ts-jest" ,{}],
18+ " ^.+\\ .tsx?$" : [" ts-jest" ,{}],
1919 },
2020} ;"
2121` ;
@@ -66,7 +66,7 @@ exports[`config init should update package.json for config type default when use
6666 " version" : " 0.0.0-mock.0" ,
6767 " jest" : {
6868 " transform" : {
69- " ^.+.tsx?$" : [
69+ " ^.+\\\\ .tsx?$" : [
7070 " ts-jest" ,
7171 {}
7272 ]
@@ -82,7 +82,7 @@ exports[`config init should update package.json for config type js-with-babel-fu
8282 " jest" : {
8383 " transform" : {
8484 " ^.+.jsx?$" : " babel-jest" ,
85- " ^.+.tsx?$" : [
85+ " ^.+\\\\ .tsx?$" : [
8686 " ts-jest" ,
8787 {
8888 " tsconfig" : " tsconfig.test.json"
@@ -114,7 +114,7 @@ exports[`config migrate should generate transform config with existing transform
114114"module.exports = {
115115 transform : {
116116 ' ^.+.jsx?$' : ' babel-jest' ,
117- ' ^.+.tsx?$' : [
117+ ' ^.+\\\\ .tsx?$' : [
118118 ' ts-jest' ,
119119 {},
120120 ],
@@ -130,7 +130,7 @@ exports[`config migrate should generate transform config with existing transform
130130 ' ts-jest' ,
131131 {},
132132 ],
133- ' ^.+.tsx?$' : [
133+ ' ^.+\\\\ .tsx?$' : [
134134 ' ts-jest' ,
135135 {},
136136 ],
@@ -142,7 +142,7 @@ exports[`config migrate should generate transform config with existing transform
142142exports [` config migrate should migrate preset if valid preset value is used 1` ] = `
143143""jest": {
144144 " transform" : {
145- " ^.+.tsx?$" : [
145+ " ^.+\\\\ .tsx?$" : [
146146 " ts-jest" ,
147147 {}
148148 ]
@@ -154,7 +154,7 @@ exports[`config migrate should migrate preset if valid preset value is used 1`]
154154exports [` config migrate should migrate preset if valid preset value is used 2` ] = `
155155""jest": {
156156 " transform" : {
157- " ^.+.tsx?$" : [
157+ " ^.+\\\\ .tsx?$" : [
158158 " ts-jest" ,
159159 {}
160160 ]
@@ -166,7 +166,7 @@ exports[`config migrate should migrate preset if valid preset value is used 2`]
166166exports [` config migrate should migrate preset if valid preset value is used 3` ] = `
167167""jest": {
168168 " transform" : {
169- " ^.+.tsx?$" : [
169+ " ^.+\\\\ .tsx?$" : [
170170 " ts-jest" ,
171171 {}
172172 ]
@@ -179,7 +179,7 @@ exports[`config migrate should reset testMatch if testRegex is used 1`] = `
179179""jest": {
180180 " testRegex" : " foo-pattern" ,
181181 " transform" : {
182- " ^.+.tsx?$" : [
182+ " ^.+\\\\ .tsx?$" : [
183183 " ts-jest" ,
184184 {}
185185 ]
@@ -194,7 +194,7 @@ exports[`config migrate should reset testMatch if testRegex is used 2`] = `
194194 " foo-pattern"
195195 ],
196196 " transform" : {
197- " ^.+.tsx?$" : [
197+ " ^.+\\\\ .tsx?$" : [
198198 " ts-jest" ,
199199 {}
200200 ]
@@ -210,7 +210,7 @@ exports[`config migrate should reset testMatch if testRegex is used 3`] = `
210210 " **/__tests__/**/*.(spec|test).[tj]s?(x)"
211211 ],
212212 " transform" : {
213- " ^.+.tsx?$" : [
213+ " ^.+\\\\ .tsx?$" : [
214214 " ts-jest" ,
215215 {}
216216 ]
@@ -225,7 +225,7 @@ exports[`config migrate should reset testMatch if testRegex is used 4`] = `
225225 " **/__tests__/**/*.(spec|test).[tj]s?(x)"
226226 ],
227227 " transform" : {
228- " ^.+.tsx?$" : [
228+ " ^.+\\\\ .tsx?$" : [
229229 " ts-jest" ,
230230 {}
231231 ]
@@ -238,7 +238,7 @@ exports[`config migrate should reset testMatch if testRegex is used 5`] = `
238238""jest": {
239239 " testRegex" : " foo-pattern" ,
240240 " transform" : {
241- " ^.+.tsx?$" : [
241+ " ^.+\\\\ .tsx?$" : [
242242 " ts-jest" ,
243243 {}
244244 ]
0 commit comments