@@ -41,20 +41,25 @@ exports[`cannot compile should throw error with incremental program 1`] = `
41
41
This is usually the result of a faulty configuration or import. Make sure there is a \` .js\` , \` .json\` or another executable extension available alongside \` test-cannot-compile.d.ts\` ."
42
42
` ;
43
43
44
+ exports [` cannot compile should throw error with incremental program 2` ] = ` "Unable to read file: test-cannot-compile.jsx"` ;
45
+
44
46
exports [` cannot compile should throw error with normal program 1` ] = `
45
47
"Unable to require \` .d.ts\` file for file: test-cannot-compile.d.ts.
46
48
This is usually the result of a faulty configuration or import. Make sure there is a \` .js\` , \` .json\` or another executable extension available alongside \` test-cannot-compile.d.ts\` ."
47
49
` ;
48
50
49
- exports [` jsx preserve should compile tsx file for jsx preserve with incremental program 1` ] = `
51
+ exports [` cannot compile should throw error with normal program 2` ] = ` "Unable to read file: test-cannot-compile.jsx"` ;
52
+
53
+ exports [` jsx preserve should compile tsx file for with incremental program 1` ] = `
50
54
===[ FILE: test-jsx-preserve.tsx ]==============================================
55
+ "use strict";
51
56
var App = function () {
52
57
return <> Test < / > ;
53
58
} ;
54
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtcHJlc2VydmUudHN4IiwibWFwcGluZ3MiOiJBQUNNLElBQU0sR0FBRyxHQUFHO0lBQ1YsT0FBTyxFQUFFLElBQUksR0FBRyxDQUFBO0FBQ2xCLENBQUMsQ0FBQSIsIm5hbWVzIjpbXSwic291cmNlcyI6WyJ0ZXN0LWpzeC1wcmVzZXJ2ZS50c3giXSwic291cmNlc0NvbnRlbnQiOlsiXG4gICAgICBjb25zdCBBcHAgPSAoKSA9PiB7XG4gICAgICAgIHJldHVybiA8PlRlc3Q8Lz5cbiAgICAgIH1cbiAgICAiXSwidmVyc2lvbiI6M30=
59
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtcHJlc2VydmUudHN4IiwibWFwcGluZ3MiOiI7QUFDTSxJQUFNLEdBQUcsR0FBRztJQUNWLE9BQU8sRUFBRSxJQUFJLEdBQUcsQ0FBQTtBQUNsQixDQUFDLENBQUEiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsidGVzdC1qc3gtcHJlc2VydmUudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIlxuICAgICAgY29uc3QgQXBwID0gKCkgPT4ge1xuICAgICAgICByZXR1cm4gPD5UZXN0PC8+XG4gICAgICB9XG4gICAgIl0sInZlcnNpb24iOjN9
55
60
===[ INLINE SOURCE MAPS ]=======================================================
56
61
file: test-jsx-preserve.tsx
57
- mappings: 'AACM,IAAM,GAAG,GAAG;IACV,OAAO,EAAE,IAAI,GAAG,CAAA;AAClB,CAAC,CAAA'
62
+ mappings: '; AACM,IAAM,GAAG,GAAG;IACV,OAAO,EAAE,IAAI,GAAG,CAAA;AAClB,CAAC,CAAA'
58
63
names: []
59
64
sources:
60
65
- test-jsx-preserve.tsx
@@ -69,15 +74,16 @@ exports[`jsx preserve should compile tsx file for jsx preserve with incremental
69
74
================================================================================
70
75
` ;
71
76
72
- exports [` jsx preserve should compile tsx file for jsx preserve with program 1` ] = `
77
+ exports [` jsx preserve should compile tsx file with program 1` ] = `
73
78
===[ FILE: test-jsx-preserve.tsx ]==============================================
79
+ "use strict";
74
80
var App = function () {
75
81
return <> Test < / > ;
76
82
} ;
77
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtcHJlc2VydmUudHN4IiwibWFwcGluZ3MiOiJBQUNNLElBQU0sR0FBRyxHQUFHO0lBQ1YsT0FBTyxFQUFFLElBQUksR0FBRyxDQUFBO0FBQ2xCLENBQUMsQ0FBQSIsIm5hbWVzIjpbXSwic291cmNlcyI6WyJ0ZXN0LWpzeC1wcmVzZXJ2ZS50c3giXSwic291cmNlc0NvbnRlbnQiOlsiXG4gICAgICBjb25zdCBBcHAgPSAoKSA9PiB7XG4gICAgICAgIHJldHVybiA8PlRlc3Q8Lz5cbiAgICAgIH1cbiAgICAiXSwidmVyc2lvbiI6M30=
83
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtcHJlc2VydmUudHN4IiwibWFwcGluZ3MiOiI7QUFDTSxJQUFNLEdBQUcsR0FBRztJQUNWLE9BQU8sRUFBRSxJQUFJLEdBQUcsQ0FBQTtBQUNsQixDQUFDLENBQUEiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsidGVzdC1qc3gtcHJlc2VydmUudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIlxuICAgICAgY29uc3QgQXBwID0gKCkgPT4ge1xuICAgICAgICByZXR1cm4gPD5UZXN0PC8+XG4gICAgICB9XG4gICAgIl0sInZlcnNpb24iOjN9
78
84
===[ INLINE SOURCE MAPS ]=======================================================
79
85
file: test-jsx-preserve.tsx
80
- mappings: 'AACM,IAAM,GAAG,GAAG;IACV,OAAO,EAAE,IAAI,GAAG,CAAA;AAClB,CAAC,CAAA'
86
+ mappings: '; AACM,IAAM,GAAG,GAAG;IACV,OAAO,EAAE,IAAI,GAAG,CAAA;AAClB,CAAC,CAAA'
81
87
names: []
82
88
sources:
83
89
- test-jsx-preserve.tsx
@@ -92,6 +98,54 @@ exports[`jsx preserve should compile tsx file for jsx preserve with program 1`]
92
98
================================================================================
93
99
` ;
94
100
101
+ exports [` other jsx options should compile tsx file for with incremental program 1` ] = `
102
+ ===[ FILE: test-jsx-options.tsx ]===============================================
103
+ "use strict";
104
+ var App = function () {
105
+ return React .createElement (React .Fragment , null , " Test" );
106
+ } ;
107
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtb3B0aW9ucy50c3giLCJtYXBwaW5ncyI6IjtBQUNNLElBQU0sR0FBRyxHQUFHO0lBQ1YsT0FBTyxpREFBUyxDQUFBO0FBQ2xCLENBQUMsQ0FBQSIsIm5hbWVzIjpbXSwic291cmNlcyI6WyJ0ZXN0LWpzeC1vcHRpb25zLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJcbiAgICAgIGNvbnN0IEFwcCA9ICgpID0+IHtcbiAgICAgICAgcmV0dXJuIDw+VGVzdDwvPlxuICAgICAgfVxuICAgICJdLCJ2ZXJzaW9uIjozfQ==
108
+ ===[ INLINE SOURCE MAPS ]=======================================================
109
+ file: test-jsx-options.tsx
110
+ mappings: ';AACM,IAAM,GAAG,GAAG;IACV,OAAO,iDAAS,CAAA;AAClB,CAAC,CAAA'
111
+ names: []
112
+ sources:
113
+ - test-jsx-options.tsx
114
+ sourcesContent:
115
+ - |2-
116
+
117
+ const App = () => {
118
+ return <> Test < / >
119
+ }
120
+
121
+ version: 3
122
+ ================================================================================
123
+ ` ;
124
+
125
+ exports [` other jsx options should compile tsx file for with program 1` ] = `
126
+ ===[ FILE: test-jsx-options.tsx ]===============================================
127
+ "use strict";
128
+ var App = function () {
129
+ return React .createElement (React .Fragment , null , " Test" );
130
+ } ;
131
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC1qc3gtb3B0aW9ucy50c3giLCJtYXBwaW5ncyI6IjtBQUNNLElBQU0sR0FBRyxHQUFHO0lBQ1YsT0FBTyxpREFBUyxDQUFBO0FBQ2xCLENBQUMsQ0FBQSIsIm5hbWVzIjpbXSwic291cmNlcyI6WyJ0ZXN0LWpzeC1vcHRpb25zLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJcbiAgICAgIGNvbnN0IEFwcCA9ICgpID0+IHtcbiAgICAgICAgcmV0dXJuIDw+VGVzdDwvPlxuICAgICAgfVxuICAgICJdLCJ2ZXJzaW9uIjozfQ==
132
+ ===[ INLINE SOURCE MAPS ]=======================================================
133
+ file: test-jsx-options.tsx
134
+ mappings: ';AACM,IAAM,GAAG,GAAG;IACV,OAAO,iDAAS,CAAA;AAClB,CAAC,CAAA'
135
+ names: []
136
+ sources:
137
+ - test-jsx-options.tsx
138
+ sourcesContent:
139
+ - |2-
140
+
141
+ const App = () => {
142
+ return <> Test < / >
143
+ }
144
+
145
+ version: 3
146
+ ================================================================================
147
+ ` ;
148
+
95
149
exports [` typings incremental program should report diagnostics with pathRegex config matches file name 1` ] = ` "test-typings.ts: Emit skipped"` ;
96
150
97
151
exports [` typings normal program should report diagnostics with pathRegex config matches file name 1` ] = `
0 commit comments