Unifes assertSnapshot common patterns like platform specific path separators, line ending, line trailing spaces, Node.js version strings, and pids in warning messages. PR-URL: https://github.com/nodejs/node/pull/61590 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
9 lines
294 B
Text
9 lines
294 B
Text
<project-root>/test/fixtures/source-map/no-source.js:2
|
|
throw new Error('foo');
|
|
^
|
|
|
|
Error: foo
|
|
at Throw (<project-root>/test/fixtures/source-map/file-not-exists.ts:2:9)
|
|
at Object.<anonymous> (<project-root>/test/fixtures/source-map/file-not-exists.ts:5:1)
|
|
|
|
Node.js <node-version>
|