Commit 187979a
feat: add test declarations support in typescript tree-sitter queries (#1899)
Add parsing support for:
- Jest describe/test/it blocks
- npm test exports
This enables proper identification of test definitions in TypeScript files:
```
// File: multi-search-replace.test.ts (192 definitions)
│| 2 - 1565 ||describe("MultiSearchReplaceDiffStrategy", () => {
│| 3 - 632 || describe("exact matching", () => {
│| 10 - 28 || it("should replace matching content", async () => {
|| ||----
│| 30 - 48 || it("should match content with different surrounding whitespace", async () => {
|| ||----
│| 50 - 68 || it("should match content with different indentation in search block", async () => {
|| ||----
│| 70 - 88 || it("should handle tab-based indentation", async () => {
|| ||----
```
Signed-off-by: Eric Wheeler <[email protected]>
Co-authored-by: Eric Wheeler <[email protected]>1 parent 15338ed commit 187979a
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
32 | 47 | | |
0 commit comments