(
options: CreateMockQueryOptions = {},
)
| 67 | } |
| 68 | |
| 69 | export function createMockTreeSitterQuery( |
| 70 | options: CreateMockQueryOptions = {}, |
| 71 | ): MockQuery { |
| 72 | const { captures = [], capturesImpl } = options |
| 73 | const capturesFn = capturesImpl ?? (() => captures) |
| 74 | |
| 75 | return { |
| 76 | captures: mock(capturesFn), |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | export interface CreateMockLanguageConfigOptions { |
| 81 | extensions?: string[] |
no outgoing calls
no test coverage detected