@@ -181,7 +181,9 @@ test.suite('ts-node', (test) => {
181
181
throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
182
182
}
183
183
184
- expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch ( / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} / ) ;
184
+ expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch (
185
+ / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} /
186
+ ) ;
185
187
} ) ;
186
188
187
189
test ( 'should work with source maps in --transpile-only mode' , async ( ) => {
@@ -190,7 +192,9 @@ test.suite('ts-node', (test) => {
190
192
throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
191
193
}
192
194
193
- expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch ( / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} / ) ;
195
+ expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch (
196
+ / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} /
197
+ ) ;
194
198
} ) ;
195
199
196
200
test ( 'eval should work with source maps' , async ( ) => {
@@ -199,7 +203,9 @@ test.suite('ts-node', (test) => {
199
203
throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
200
204
}
201
205
202
- expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch ( / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} / ) ;
206
+ expect ( r . err . message . replace ( / \r \n / g, '\n' ) ) . toMatch (
207
+ / t h r o w ( | % 2 0 ) e r r o r \. t s : 1 0 0 \n b a r \( \) \{ t h r o w n e w E r r o r \( ' t h i s i s a d e m o ' \) ; \} /
208
+ ) ;
203
209
} ) ;
204
210
205
211
for ( const flavor of [
0 commit comments