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

comunica / traqula / 27758988697
100%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2026 12:22PM UTC
Jobs 9
Files 127
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

18 Jun 2026 12:20PM UTC coverage: 100.0%. Remained the same
27758988697

push

github

web-flow
Fix: double packaging test-utils through side-effect endpoint  (#149)

TLDR: our previous approach did not work on CJS. Now, we have two index files that, as a side effect register the directory of our statics files regardless of working directory. This approach uses either `__dirName` or `import.meta.url` depending on cjs or ESM runtime.

---


* fix(test-utils): resolve statics relative to installed package location

Replace `path.resolve('packages/test-utils/statics')` (which relied on
CWD being the monorepo root) with `import.meta.url`-based resolution
that walks up the directory tree to find the `statics/` folder.

Changes:
- `lib/generators/utils.ts`: use `import.meta.url` + walk-upward to
  locate `statics/` regardless of CWD or call site depth. A
  `/* v8 ignore */` guard covers the unreachable filesystem-root throw.
- `tsconfig.cjs.json`: exclude `lib/generators/utils.ts` from the CJS
  TypeScript build (file is still compiled via imports, but the output
  is replaced by the post-build script).
- `scripts/write-cjs-utils.cjs` (new): post-build script that writes
  a `__dirname`-based CJS equivalent into `dist/cjs/lib/generators/`.
- `package.json`: wire the post-build script into `build:cjs`, bump
  patch version to 1.1.4.
- `eslint.config.js`: ignore `task.md` and the build scripts directory
  from linting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* cleanup

* fix(@traqula/test-utils): replace string-template CJS shim with proper dual-entry compilation

Root cause: dist/cjs/lib/generators/utils.js contained import.meta.url, causing
SyntaxError: Cannot use 'import.meta' outside a module when loaded with require().
The previous workaround (write-cjs-utils.cjs) patched the dist file after the fact
via a string template, bypassing TypeScript type-checking and linting, and was never
wired into the build scripts.

Changes:
- lib/generators/utils.ts: Remove import.meta.url entirely. Add _initStaticsRoot(dir)
  for lazy... (continued)

759 of 759 branches covered (100.0%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 3 files covered. (100.0%)

5474 of 5474 relevant lines covered (100.0%)

282861.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-22.x-ubuntu-latest - 27758988697.1 18 Jun 2026 12:22PM UTC 127
100.0
GitHub Action Run
2 run-24.x-macos-latest - 27758988697.2 18 Jun 2026 12:27PM UTC 127
100.0
GitHub Action Run
3 run-24.x-windows-latest - 27758988697.3 18 Jun 2026 12:23PM UTC 127
100.0
GitHub Action Run
4 run-20.x-windows-latest - 27758988697.4 18 Jun 2026 12:24PM UTC 127
100.0
GitHub Action Run
5 run-20.x-ubuntu-latest - 27758988697.5 18 Jun 2026 12:22PM UTC 127
100.0
GitHub Action Run
6 run-24.x-ubuntu-latest - 27758988697.6 18 Jun 2026 12:22PM UTC 127
100.0
GitHub Action Run
7 run-22.x-windows-latest - 27758988697.7 18 Jun 2026 12:24PM UTC 127
100.0
GitHub Action Run
8 run-22.x-macos-latest - 27758988697.8 18 Jun 2026 12:27PM UTC 127
100.0
GitHub Action Run
9 run-20.x-macos-latest - 27758988697.9 18 Jun 2026 12:25PM UTC 127
100.0
GitHub Action Run
Source Files on build 27758988697
  • Tree
  • List 127
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27758988697
  • db786bec on github
  • Prev Build on main (#27757381240)
  • Next Build on main (#27760606252)
  • Delete
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