@@ -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(/throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/);
184
+ expect(r.err.message.replace(/\r\n/g, '\n')).toMatch(
185
+ /throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/
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(/throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/);
195
+ expect(r.err.message.replace(/\r\n/g, '\n')).toMatch(
196
+ /throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/
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(/throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/);
206
+ expect(r.err.message.replace(/\r\n/g, '\n')).toMatch(
207
+ /throw( |%20)error\.ts:100\n bar\(\) \{ throw new Error\('this is a demo'\); \}/
208
+ );
203
209
});
204
210
205
211
for (const flavor of [
0 commit comments