| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,9 +190,9 @@ class FileTest extends Test { | |||
| 190 | 190 | let directive; | |
| 191 | 191 | ||
| 192 | 192 | if (skip) { | |
| 193 | - directive = this.reporter.getSkip(node.reason); | ||
| 193 | + directive = this.reporter.getSkip(node.reason || true); | ||
| 194 | 194 | } else if (todo) { | |
| 195 | - directive = this.reporter.getTodo(node.reason); | ||
| 195 | + directive = this.reporter.getTodo(node.reason || true); | ||
| 196 | 196 | } else { | |
| 197 | 197 | directive = kEmptyObject; | |
| 198 | 198 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,7 +150,7 @@ | |||
| 150 | 150 | test with a name and options provided (*ms) # SKIP | |
| 151 | 151 | functionAndOptions (*ms) # SKIP | |
| 152 | 152 | escaped description \ # \#\ | |
| 153 | - (*ms) | ||
| 153 | + (*ms) | ||
| 154 | 154 | escaped skip message (*ms) # SKIP | |
| 155 | 155 | escaped todo message (*ms) | |
| 156 | 156 | escaped diagnostic (*ms) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + // Flags: --no-warnings | ||
| 2 | + 'use strict'; | ||
| 3 | + require('../../../common'); | ||
| 4 | + const fixtures = require('../../../common/fixtures'); | ||
| 5 | + const spawn = require('node:child_process').spawn; | ||
| 6 | + | ||
| 7 | + const child = spawn(process.execPath, | ||
| 8 | + ['--no-warnings', '--test', '--test-reporter', 'spec', fixtures.path('test-runner/output/output.js')], | ||
| 9 | + { stdio: 'pipe' }); | ||
| 10 | + // eslint-disable-next-line no-control-regex | ||
| 11 | + child.stdout.on('data', (d) => process.stdout.write(d.toString().replace(/[^\x00-\x7F]/g, '').replace(/\u001b\[\d+m/g, ''))); | ||
| 12 | + child.stderr.pipe(process.stderr); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments