@@ -181,7 +181,9 @@ test.suite('ts-node', (test) => {
181181 throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
182182 }
183183
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+ ) ;
185187 } ) ;
186188
187189 test ( 'should work with source maps in --transpile-only mode' , async ( ) => {
@@ -190,7 +192,9 @@ test.suite('ts-node', (test) => {
190192 throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
191193 }
192194
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+ ) ;
194198 } ) ;
195199
196200 test ( 'eval should work with source maps' , async ( ) => {
@@ -199,7 +203,9 @@ test.suite('ts-node', (test) => {
199203 throw new Error ( 'Command was expected to fail, but it succeeded.' ) ;
200204 }
201205
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+ ) ;
203209 } ) ;
204210
205211 for ( const flavor of [
0 commit comments