include stdout into the detail-float
All checks were successful
tests / test (push) Successful in 7s

This commit is contained in:
2026-01-06 12:27:19 +01:00
parent aa343f67ca
commit e4b4097999
4 changed files with 143 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ Main plugin: https://gitea.mschirmer.com/m13r/test-samurai.nvim
- Builds `npx jest` commands for nearest, file, all, and failed-only runs.
- Streams results via a custom Jest reporter using `onTestCaseResult`.
- Uses `--testLocationInResults` for Quickfix and `<leader>o` support.
- Captures `console.*` output per test case and shows it in the detail float.
## Installation (lazy.nvim)
@@ -60,3 +61,4 @@ Use the standard `test-samurai.nvim` commands (e.g. `TSamNearest`, `TSamFile`, `
- The reporter lives at `reporter/test_samurai_jest_reporter.js` and is loaded via `--reporters`.
- Test names are reported as `Describe/It` for grouping in the listing.
- Stdout capture uses `reporter/test_samurai_jest_stdout.js` via `--setupFilesAfterEnv` and tags output as `TSAMURAI_STDOUT`.