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

accordproject / template-engine / 39404581671
73%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 10:01AM 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

20 Oct 2026 09:58AM UTC coverage: 73.195% (+0.08%) from 73.115%
39404581671

push

github

web-flow
fix: return an empty state when template logic inherits init (#215)

* fix: return an empty state when template logic inherits init

The runtime TemplateLogic base class's default init resolves to
undefined, so init() on a template whose logic only defines trigger
crashed reading `.state`. Treat an undefined init response as a
stateless template's empty placeholder state ({ state: {} }). The LLM
executor path already always returns a { state } object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>

* test: move inherited-init tests into the TemplateArchiveProcessor suite

Loading template logic from a second test file in the same Jest worker
fails with "Test environment has been torn down", which broke the
macOS CI job (fewer workers, so both suites shared one). Keep the
regression tests alongside the other logic-executing tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>

* refactor: remove the dead "no init method" check in executeTypeScriptInit

The compiled logic always contains the runtime TemplateLogic base class
and its init stub, so the `includes('init(')` short-circuit never fired.
Logic without its own init is handled by the inherited init resolving to
undefined, which becomes the stateless { state: {} } placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>

---------

Signed-off-by: Matt Roberts <code@rbrts.uk>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

730 of 1146 branches covered (63.7%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1277 of 1596 relevant lines covered (80.01%)

3108.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 windows-latest - 39404581671.1 20 Oct 2026 10:02AM UTC 67
75.51
GitHub Action Run
2 macos-latest - 39404581671.2 20 Oct 2026 10:03AM UTC 67
75.51
GitHub Action Run
3 ubuntu-latest - 39404581671.3 20 Oct 2026 10:01AM UTC 67
75.51
GitHub Action Run
Source Files on build 39404581671
  • Tree
  • List 34
  • Changed 26
  • Source Changed 1
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39404581671
  • 519ee9d5 on github
  • Prev Build on main (#39318067527)
  • 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