Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ describeWithWasm('treeSitterTsParser (.wasm-backed)', () => {
// race the init promise. The init failure path is now retry-friendly
// (see `ensureRuntime` in runtime.ts), and we trust the first test in
// this suite to exercise the init path cleanly.
//
// The one-time `Parser.init` WASM bootstrap can exceed jest's default
// 5000ms on a loaded/slow CI runner (observed on macOS runners); bump
// the suite timeout so a slow cold start doesn't fail an otherwise
// passing assertion.
jest.setTimeout(20000)

it('returns undefined for non-TS / non-JS file paths', async () => {
expect(await treeSitterTsParser.summarize(fileDiff('README.md', '+x'))).toBeUndefined()
Expand Down
Loading