Closed elliot-nelson closed 4 years ago
Tweak the fullReporter slightly to display the correct line and column highlighting.
fullReporter
No tests included; I don't see an easy way to provide a test for a reporter given the current approach, but let me know if I'm missing something.
Using this example build, here are before and after screenshots of the output...
// gulpfile.js module.exports.default = () => { const ts = typescript.createProject('tsconfig.json', typescript.reporter.fullReporter()); return gulp.src('src/ts/example.ts') .pipe(ts(typescript.reporter.fullReporter())).js .pipe(gulp.dest('dist')); };
// src/ts/example.ts export function example() { console.log(Math.squeak()); }
Thanks for your PR Elliot! Sorry for the delay
SUMMARY
Tweak the
fullReporter
slightly to display the correct line and column highlighting.TESTS
No tests included; I don't see an easy way to provide a test for a reporter given the current approach, but let me know if I'm missing something.
TEST CASE
Using this example build, here are before and after screenshots of the output...
BEFORE SCREENSHOT
AFTER SCREENSHOT