Added JavaScript runnable detection for context and suite methods (#21719)
Fixes https://github.com/zed-industries/zed/pull/21246#issuecomment-2525578141 <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
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
] @context
|
] @context
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @name)
|
arguments . (string (string_fragment) @name)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @run)
|
arguments . (string (string_fragment) @run)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
] @context
|
] @context
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @name)
|
arguments . (string (string_fragment) @name)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @run)
|
arguments . (string (string_fragment) @run)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
] @context
|
] @context
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @name)
|
arguments . (string (string_fragment) @name)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
(#any-of? @_name "it" "test" "describe")
|
(#any-of? @_name "it" "test" "describe" "context" "suite")
|
||||||
arguments: (
|
arguments: (
|
||||||
arguments . (string (string_fragment) @run)
|
arguments . (string (string_fragment) @run)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user