42 lines · 1.0 KB · Scheme
RawDownload
; Add support for (node:test, bun:test and Jest) runnable; Function expression that has `it`, `test` or `describe` as the function name((call_expression  function: [    (identifier) @_name    (member_expression      object: [        (identifier) @_name        (member_expression          object: (identifier) @_name)      ])  ]  (#any-of? @_name "it" "test" "describe" "context" "suite")  arguments: (arguments    .    [      (string        (string_fragment) @run)      (identifier) @run    ])) @_js-test  (#set! tag js-test)) ; Add support for parameterized tests((call_expression  function: (call_expression    function: (member_expression      object: [        (identifier) @_name        (member_expression          object: (identifier) @_name)      ]      property: (property_identifier) @_property)    (#any-of? @_name "it" "test" "describe" "context" "suite")    (#eq? @_property "each"))  arguments: (arguments    .    [      (string        (string_fragment) @run)      (identifier) @run    ])) @_js-test  (#set! tag js-test))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t