|
1 | 1 | function mockStack (error) {
|
2 | 2 | error.stack = ''
|
3 | 3 | + ' at Object.<anonymous> (/dev/null/test/unit/data.js:6:5)\n'
|
4 |
| - + ' at require (internal/helpers.js:22:18)\n' |
| 4 | + + ' at require (node:internal/helpers.js:22:18)\n' |
5 | 5 | + ' at /dev/null/src/example/foo.js:220:27';
|
6 | 6 | return error;
|
7 | 7 | }
|
@@ -35,6 +35,9 @@ QUnit.module('TapReporter', function (hooks) {
|
35 | 35 | },
|
36 | 36 | cyan: function (txt) {
|
37 | 37 | return '\x1B[36m' + txt + '\x1B[39m';
|
| 38 | + }, |
| 39 | + grey: function (txt) { |
| 40 | + return '\x1B[90m' + txt + '\x1B[39m'; |
38 | 41 | }
|
39 | 42 | };
|
40 | 43 |
|
@@ -149,15 +152,15 @@ QUnit.module('TapReporter', function (hooks) {
|
149 | 152 | + ' severity: failed\n'
|
150 | 153 | + ' stack: |\n'
|
151 | 154 | + ' at Object.<anonymous> (/dev/null/test/unit/data.js:6:5)\n'
|
152 |
| -+ ' at require (internal/helpers.js:22:18)\n' |
| 155 | ++ ' ' + kleur.grey(' at require (node:internal/helpers.js:22:18)') + '\n' |
153 | 156 | + ' at /dev/null/src/example/foo.js:220:27\n'
|
154 | 157 | + ' ...\n'
|
155 | 158 | + ' ---\n'
|
156 | 159 | + ' message: second error\n'
|
157 | 160 | + ' severity: failed\n'
|
158 | 161 | + ' stack: |\n'
|
159 | 162 | + ' at Object.<anonymous> (/dev/null/test/unit/data.js:6:5)\n'
|
160 |
| -+ ' at require (internal/helpers.js:22:18)\n' |
| 163 | ++ ' ' + kleur.grey(' at require (node:internal/helpers.js:22:18)') + '\n' |
161 | 164 | + ' at /dev/null/src/example/foo.js:220:27\n'
|
162 | 165 | + ' ...\n'
|
163 | 166 | );
|
@@ -190,7 +193,7 @@ QUnit.module('TapReporter', function (hooks) {
|
190 | 193 | + ' severity: failed\n'
|
191 | 194 | + ' stack: |\n'
|
192 | 195 | + ' at Object.<anonymous> (/dev/null/test/unit/data.js:6:5)\n'
|
193 |
| -+ ' at require (internal/helpers.js:22:18)\n' |
| 196 | ++ ' ' + kleur.grey(' at require (node:internal/helpers.js:22:18)') + '\n' |
194 | 197 | + ' at /dev/null/src/example/foo.js:220:27\n'
|
195 | 198 | + ' ...\n'
|
196 | 199 | + 'Bail out! ReferenceError: Boo is not defined\n'
|
|
0 commit comments