| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,5 +8,5 @@ | |||
| 8 | 8 | at * | |
| 9 | 9 | at * | |
| 10 | 10 | at * | |
| 11 | - (Use `node --trace-warnings ...` to show where the warning was created) | ||
| 11 | + (Use `* --trace-warnings ...` to show where the warning was created) | ||
| 12 | 12 | (node:*) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https:*nodejs.org*api*cli.html#cli_unhandled_rejections_mode). (rejection id: 1) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,6 @@ | |||
| 3 | 3 | throw { * eslint-disable-line no-throw-literal | |
| 4 | 4 | ^ | |
| 5 | 5 | [object Object] | |
| 6 | - (Use `node --trace-uncaught ...` to show where the exception was thrown) | ||
| 6 | + (Use `* --trace-uncaught ...` to show where the exception was thrown) | ||
| 7 | 7 | ||
| 8 | 8 | Node.js * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,6 @@ | |||
| 3 | 3 | throw null; | |
| 4 | 4 | ^ | |
| 5 | 5 | null | |
| 6 | - (Use `node --trace-uncaught ...` to show where the exception was thrown) | ||
| 6 | + (Use `* --trace-uncaught ...` to show where the exception was thrown) | ||
| 7 | 7 | ||
| 8 | 8 | Node.js * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,6 @@ | |||
| 3 | 3 | throw undefined; | |
| 4 | 4 | ^ | |
| 5 | 5 | undefined | |
| 6 | - (Use `node --trace-uncaught ...` to show where the exception was thrown) | ||
| 6 | + (Use `* --trace-uncaught ...` to show where the exception was thrown) | ||
| 7 | 7 | ||
| 8 | 8 | Node.js * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ import * as fixtures from '../common/fixtures.mjs'; | |||
| 3 | 3 | import * as snapshot from '../common/assertSnapshot.js'; | |
| 4 | 4 | import * as os from 'node:os'; | |
| 5 | 5 | import { describe, it } from 'node:test'; | |
| 6 | + import { basename } from 'node:path'; | ||
| 6 | 7 | import { pathToFileURL } from 'node:url'; | |
| 7 | 8 | ||
| 8 | 9 | const skipForceColors = | |
@@ -20,13 +21,15 @@ function replaceForceColorsStackTrace(str) { | |||
| 20 | 21 | ||
| 21 | 22 | describe('errors output', { concurrency: !process.env.TEST_PARALLEL }, () => { | |
| 22 | 23 | function normalize(str) { | |
| 24 | + const baseName = basename(process.argv0 || 'node', '.exe'); | ||
| 23 | 25 | return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '') | |
| 24 | 26 | .replaceAll(pathToFileURL(process.cwd()).pathname, '') | |
| 25 | 27 | .replaceAll('//', '*') | |
| 26 | 28 | .replaceAll(/\/(\w)/g, '*$1') | |
| 27 | 29 | .replaceAll('*test*', '*') | |
| 28 | 30 | .replaceAll('*fixtures*errors*', '*') | |
| 29 | - .replaceAll('file:**', 'file:*/'); | ||
| 31 | + .replaceAll('file:**', 'file:*/') | ||
| 32 | + .replaceAll(`${baseName} --`, '* --'); | ||
| 30 | 33 | } | |
| 31 | 34 | ||
| 32 | 35 | function normalizeNoNumbers(str) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments