fix test file detection
All checks were successful
tests / test (push) Successful in 9s

This commit is contained in:
2026-01-05 09:16:08 +01:00
parent 58ab97f757
commit aa343f67ca
4 changed files with 241 additions and 174 deletions

View File

@@ -7,6 +7,7 @@ Main plugin: https://gitea.mschirmer.com/m13r/test-samurai.nvim
## Features
- Detects Jest test files (`*.test.*`, `*.spec.*`).
- Activates only when the nearest `package.json` lists `jest` in dependencies or devDependencies.
- Finds nearest `test`/`it` within `describe` blocks.
- Builds `npx jest` commands for nearest, file, all, and failed-only runs.
- Streams results via a custom Jest reporter using `onTestCaseResult`.