Skip to content

Commit dca94aa

Browse files
committed
Simplify test helpers
1 parent cee2cc3 commit dca94aa

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

test/helpers/normalize.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ const REPLACEMENTS = [
4747
[/(([ \t]+)at STACK TRACE(\r?\n)?)+/gu, '$2at STACK TRACE$3'],
4848
// Default Node.js warnings show PID, which we remove
4949
[/\(node:\d+\)/gu, '(node:PID)'],
50-
// Default Node.js warnings in >=14 show this additional warning
51-
[/\n.*--trace-warnings \.\.\..*/gu, ''],
5250
// File paths
5351
[/[^ (]+\/[^ )]+/gu, ''],
5452
// Durations in test runners:

test/snapshots/warnings.js.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Generated by [AVA](https://avajs.dev).
1616
> Snapshot 1
1717
1818
`(node:PID) [500] WarningType: message␊
19-
Detail`
19+
Detail␊
20+
(Use \`node --trace-warnings ...\` to show where the warning was created)`
2021

2122
## should work with warnings-related CLI flags | uncaughtException "--no-warnings"
2223

test/snapshots/warnings.js.snap

42 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)