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

sudo-suhas / elastic-builder / 19727954794
100%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2025 07:03AM UTC
Jobs 1
Files 178
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

27 Nov 2025 07:02AM UTC coverage: 99.961% (-0.04%) from 100.0%
19727954794

push

github

web-flow
test: migrate from AVA to Vitest and remove test macros (#221)

Replace AVA test framework with Vitest and eliminate all test macros
by expanding them into explicit, self-documenting test cases. This
migration improves developer experience with watch mode, built-in
coverage reporting, and makes each test independently readable.

Key changes:

Dependencies and Configuration:
- Replace AVA with Vitest for test execution
- Remove NYC in favor of Vitest's built-in coverage (@vitest/coverage-v8)
- Remove eslint-plugin-ava and add eslint-plugin-vitest
- Create vitest.config.js with ES Modules support, parallel execution,
  and coverage configuration matching previous NYC settings
- Configure coverage to generate html, lcov, and text reports in a
  single test run

Test Migration (153 test files transformed):
- Convert all test files from AVA syntax to Vitest syntax
- Replace AVA's `t.deepEqual()` with `expect().toEqual()`
- Replace AVA's `t.truthy()` with `expect().toBeTruthy()`
- Replace AVA's `t.throws()` with `expect().toThrow()`
- Use explicit imports: `import { test, expect, describe } from 'vitest'`

Test Macro Elimination:
- Remove test/_macros.js entirely (contained 6 test macro patterns)
- Expand `setsAggType` macro into explicit aggregation type tests
- Expand `validatedCorrectly` macro into table-driven validation tests
- Expand `makeSetsOptionMacro` generated tests into explicit option tests
- Expand `illegalCall` macro into explicit error tests with toThrow()
- Expand `illegalParamType` macro into explicit TypeError tests
- All expanded tests follow table-driven patterns for maintainability

Test Utilities:
- Create test/testutil/ package for shared test helper functions
- Add type checking utilities for parameter validation
- Export all utilities from test/testutil/index.js
- Reuse existing recursiveToJSON from src/core/util.js

Package Scripts:
- Update test:src: `vitest run --coverage` (single-step execution)
- Remove report script (now redu... (continued)

1367 of 1370 branches covered (99.78%)

Branch coverage included in aggregate %.

19247 of 19252 relevant lines covered (99.97%)

10.17 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
5
94.52
-5.48% src/core/runtime-field.js
Jobs
ID Job ID Ran Files Coverage
1 -node- - 19727954794.1 27 Nov 2025 07:03AM UTC 178
99.96
GitHub Action Run
Source Files on build 19727954794
  • Tree
  • List 178
  • Changed 178
  • Source Changed 0
  • Coverage Changed 178
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 62463dd3 on github
  • Prev Build on master (#19623479558)
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