detect and use project jest.setup.{j,t}s files
All checks were successful
tests / test (push) Successful in 8s

This commit is contained in:
2026-01-08 12:42:44 +01:00
parent e4b4097999
commit a6c9da2f9a
3 changed files with 91 additions and 9 deletions

View File

@@ -62,3 +62,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`.
- If present, `jest.setup.js` or `jest.setup.ts` from the project root or `test/.bin` is appended via `--setupFilesAfterEnv`.