• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 22720471161
62%

Build:
DEFAULT BRANCH: develop
Ran 05 Mar 2026 01:42PM UTC
Jobs 1
Files 197
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Mar 2026 01:37PM UTC coverage: 61.795%. Remained the same
22720471161

push

github

web-flow
fix(function): support multiline import type statements in import scanning (#4872)

* fix(function): support multiline import type statements in import scanning

The regex pattern `.*?` does not match newlines, causing multiline
`import type { X }` statements to be skipped during bind-mount file
scanning. This results in type-only imports not being mounted in
the Docker container, causing runtime errors like:

  worker boot error: Module not found "file:///.../types/MyType.ts"

Changed `.*?` to `[\s\S]*?` to match any character including newlines,
consistent with the `{[^{}]+}` pattern used for braced imports.

This fix enables proper handling of Deno 2.x style multiline type imports:

```typescript
import type {
  MyType,
  OtherType,
} from './types.ts'
```

Includes test case to prevent regression.

* test(function): add non-braced default type import to fixture

Cover `import type Foo from '...'` pattern in the multiline import
type test. This form also routes through the `[\s\S]*?` branch and
was previously untested.

* fix(function): use (?:type\s+)? for multiline import type matching

Narrow the regex fix for multiline import type statements per PR review feedback. Instead of widening .*? to [\s\S]*? (which affects all import patterns), add (?:type\s+)? to consume the type keyword so braced imports route into the {[^{}]+} branch that already handles newlines.

---------

Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>

7717 of 12488 relevant lines covered (61.8%)

7.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22720471161.1 05 Mar 2026 01:42PM UTC 197
61.8
GitHub Action Run
Source Files on build 22720471161
  • Tree
  • List 197
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22720471161
  • 67510a2e on github
  • Prev Build on develop (#22615831622)
  • Next Build on develop (#22769140550)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc