Closed kdnk closed 11 months ago
Create a file after/queries/typescript/aerial.scm
in your vim configuration directory with the following contents:
;; extends
(call_expression
function: (_
property: (property_identifier) @method @name (#any-of? @method "describe" "beforeEach"))
arguments: (arguments
(string
(string_fragment) @name @string))?
(#set! "kind" "Function")
) @symbol @selection
If more test.<something>
cases need to be matched, expand the #any-of?
list.
@Slotos Thank you! It works!
Language: TypeScript
Example: https://playwright.dev/docs/writing-tests
In https://github.com/stevearc/aerial.nvim/issues/47, Jest is supported, but sometimes aerial.nvim doesn't work as expected with Playwright. In Playwright we usually use
test.describe
instead ofdescribe
but it doesn't show up on aerial window.test.describe
should be treated as the same withdescribe
.