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

accordproject / template-engine / 37518899572
73%

Build:
DEFAULT BRANCH: main
Ran 06 Oct 2026 07:29PM UTC
Jobs 3
Files 34
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

06 Oct 2026 07:25PM UTC coverage: 73.026% (+0.07%) from 72.954%
37518899572

push

github

web-flow
fix: throw a typed TemplateCompilationError instead of a raw array on TypeScript compilation failure (#198)

* fix: handle TypeScript compilation errors

Signed-off-by: Kunal suryavanshi <bhawikakunal@gmail.com>

* test: fix lint error in compilation failure test

Replace the `err: any` catch binding, which fails the
@typescript-eslint/no-explicit-any lint rule and so breaks `npm test`
and CI, with a typed `Error & { errors: CompilerError[] }`.

Also capture the thrown value outside the try block, so that if
compile() stopped throwing the test would fail on the instanceof
assertion rather than relying on a sentinel error thrown inside the
same try.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wc7EpEH4k5sEJRCMGBYdYy
Signed-off-by: Matt Roberts <matt@rbrts.uk>

* feat: throw a typed TemplateCompilationError with structured errors

Replace the ad-hoc `Error` with an `errors` property attached via an
`any` cast with an exported TemplateCompilationError class. Its message
is the human-readable summary, and its typed `errors` property carries
the full CompilerError objects (nodeId, source code and every TwoSlash
diagnostic, including code, category, start, length, line and
character) so callers can work with them directly instead of parsing
the message.

TemplateCompilationError and the CompilerError type are now exported
from the package entry point.

The interpreter's bad-template tests snapshot the structured errors as
well as the message, restoring the full diagnostic detail that the
snapshots recorded before compilation failures were wrapped in an Error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wc7EpEH4k5sEJRCMGBYdYy
Signed-off-by: Matt Roberts <matt@rbrts.uk>

* refactor: base TemplateCompilationError on AggregateError

AggregateError (ES2021) is the built-in type for an error that wraps
several errors: it takes the list in its... (continued)

722 of 1140 branches covered (63.33%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 2 files covered. (100.0%)

1276 of 1596 relevant lines covered (79.95%)

2958.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest - 37518899572.1 06 Oct 2026 07:29PM UTC 67
75.38
GitHub Action Run
2 windows-latest - 37518899572.2 06 Oct 2026 07:30PM UTC 67
75.38
GitHub Action Run
3 macos-latest - 37518899572.3 06 Oct 2026 07:30PM UTC 67
75.38
GitHub Action Run
Source Files on build 37518899572
  • Tree
  • List 34
  • Changed 27
  • Source Changed 3
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37518899572
  • 4094fbae on github
  • Prev Build on main (#37513162597)
  • Next Build on main (#37520903430)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc