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

valkyrjaio / sindri-ts / 27858466404
100%

Build:
DEFAULT BRANCH: 26.x
Ran 20 Jun 2026 03:13AM UTC
Jobs 1
Files 45
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 Jun 2026 03:12AM UTC coverage: 100.0%. First build
27858466404

push

github

web-flow
[Tests] Add tests (#26)

# Description

Adds a complete unit test suite for Sindri (195 tests, 52 files)
reaching 99.91% line coverage — 100% of all reachable lines, one test
file per source file. Also fixes two AST node-kind bugs in
`ConfigReader` that caused `readFile` to return an empty `ConfigResult`
for every real config and to miss `import.meta.dirname` directory
resolution.

---

## Types of Changes

- [x] Improvement _(non-breaking change which improves code)_
- [x] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

---

## Changes

- **`src/Sindri/Ast/ConfigReader.ts`** — fixed two AST node-kind bugs:
`super()` callee is a `SuperKeyword` (not an `Identifier`), and
`import.meta` is a `MetaProperty` — the prior checks caused `readFile`
to return an empty `ConfigResult` for every real config and to miss
`import.meta.dirname` directory resolution
- **`tests/Tests/Unit/**` (52 files, 195 tests)** — added dedicated
per-source-file unit tests covering `AstReader` (via a `TestAstReader`
subclass exposing every protected helper), `GenerateDataFromAst`
(stubbed readers/generators + real `App` fixture tree, hitting every
dedup/skip/continue/recursion branch), `HttpRouteParameterReader`,
`HttpRouteMiddlewareReader`, `RouteAttributeReader`,
`AstHttpDataFileGenerator` (with `RequestMethod::`-prefixed methods and
a `Regex::NUM` parameter to populate path/regex builders), and targeted
edge-branch tests for `ServiceProviderReader`, CLI/HTTP attribute
readers, `ListenerAttributeReader`, and `ConfigReader`
- **`tests/Tests/Classes/`** — added inert ts-morph fixture trees
(config variants, providers, controllers, middleware, the `App` pipeline
tree, and `AstReader` helpers)

The full `GenerateDataFromAst` pi... (continued)

693 of 693 branches covered (100.0%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 4 files covered. (100.0%)

1128 of 1128 relevant lines covered (100.0%)

10.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27858466404.1 20 Jun 2026 03:13AM UTC 45
100.0
GitHub Action Run
Source Files on build 27858466404
  • Tree
  • List 45
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27858466404
  • aca1b363 on github
  • Next Build on 26.x (#27881086382)
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