Skip to content
Prev Previous commit
Next Next commit
fixup! test: allow filtering async internal frames in assertSnapshot
  • Loading branch information
joyeecheung committed Feb 14, 2026
commit f33117a7a07897e64f9ecaf5dc4e97e06203826d
2 changes: 1 addition & 1 deletion test/common/assertSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { hostname } = require('node:os');
* Group 6: Line end (including color codes and `{` which indicates the start of an error object details)
*/
// Mappings: (g1 ) (g2 ) (g3 ) (g4 ) (g5 ) (g6 )
const internalStackFramesRegexp = /(?<=\n)(\s*(?:\x1b?\[\d+m\s+)?at\s+)(?:async\s+)?(?:(.+?)\s+\()?(?:(node:.+?):(\d+)(?::(\d+))?)\)?((?:\x1b?\[\d+m)?\s*{?\n|$)/g;
const internalStackFramesRegexp = /(?<=\n)(\s*(?:\x1b?\[\d+m\s+)?(?:at\s+)?)?(?:async\s+)?(?:(.+?)\s+\()?(?:(node:.+?):(\d+)(?::(\d+))?)\)?((?:\x1b?\[\d+m)?\s*{?\n|$)/g;
Comment thread
joyeecheung marked this conversation as resolved.
Outdated
/**
* Group 1: Filename
* Group 2: Line number
Expand Down
Loading