Skip to content

Commit

Permalink
Added JavaScript runnable detection for context and suite methods (
Browse files Browse the repository at this point in the history
…#21719)

Fixes
#21246 (comment)

<img width="545" alt="Screenshot 2024-12-08 at 22 58 33"
src="https://github.com/user-attachments/assets/2f303bfe-9718-4aa9-910e-613feca15ea8">
<img width="409" alt="Screenshot 2024-12-08 at 22 58 44"
src="https://github.com/user-attachments/assets/c4576cf7-fd71-44d2-911e-3ed944c9b794">

Release Notes:

- Added JavaScript runnable detection for `context` and `suite` methods
for mochajs framework
  • Loading branch information
RemcoSmitsDev authored Dec 9, 2024
1 parent 4564273 commit e58cdca
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/languages/src/javascript/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
]
)
] @context
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @name)
)
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/javascript/runnables.scm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]
)
]
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @run)
)
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/tsx/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
]
)
] @context
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @name)
)
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/tsx/runnables.scm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]
)
]
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @run)
)
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/typescript/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
]
)
] @context
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @name)
)
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/typescript/runnables.scm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]
)
]
(#any-of? @_name "it" "test" "describe")
(#any-of? @_name "it" "test" "describe" "context" "suite")
arguments: (
arguments . (string (string_fragment) @run)
)
Expand Down

0 comments on commit e58cdca

Please sign in to comment.