Releases: htest-dev/htest
Releases · htest-dev/htest
v0.0.24
What's Changed
Bug fixes
- Always show summary output in CI mode when all tests pass by @DmitrySharabin in #126
DX improvements
- Recommend
npx skills addfor AI agent skill installation by @DmitrySharabin in 298beae
Full Changelog: v0.0.23...v0.0.24
v0.0.23
What's Changed
DX improvements
- Add skill file (
SKILL.md) for AI coding agents — enables Claude Code, Cursor, Copilot, Windsurf, Codex, and Gemini CLI to write hTest tests correctly by @DmitrySharabin in #124 - Restrict
npm publishto package files only, reducing published package size from 2.1 MB to ~32 KB by @DmitrySharabin in a954397
Bug fixes
- Fix stale Color.js reference in
hooks.jsJSDoc by @DmitrySharabin in 17738e9 - Fix known vulnerabilities by @DmitrySharabin in 05b20d0
Full Changelog: v0.0.22...v0.0.23
v0.0.22
What's Changed
Bug fixes
- Fix CLI crash in non-TTY environments by @DmitrySharabin in #123
Full Changelog: v0.0.21...v0.0.22
v0.0.21
What's Changed
Bug fixes
- Correctly stringify
undefinedandnullby @DmitrySharabin in #104 - Add missed imports by @DmitrySharabin in #105
Improvements in docs
DX improvements
- Add the
devscript by @LeaVerou in bd8cb0e - Use
node:protocol when importing NodeJS built-in modules by @Zearin in #112
New Contributors
Full Changelog: v0.0.20...v0.0.21
v0.0.20
What's Changed
Bug fixes
- Fix regression when all failed tests were shown as skipped by @DmitrySharabin in d4f8cbd
Full Changelog: v0.0.19...v0.0.20
Changes in v0.0.19
Improvements
- Support verbose output in CI/CD; allow enabling verbose output via a CLI argument by @DmitrySharabin in #97
- Don't format skipped tests as failed by @DmitrySharabin in #97
- Stringify intercepted messages before printing them out, so we don't get
[object Object]when printing out objects by @DmitrySharabin in #99
Bug fixes
- Respect the
verboseoption when printing out results by @DmitrySharabin in #97 - In CI/CD, don't exit with an error if there are none by @DmitrySharabin in #98
Full Changelog: v0.0.18...v0.0.19
v0.0.18
What's Changed
API changes
- Allow writing tests without
argorargsby @DmitrySharabin and @LeaVerou in #57 - Add lifecycle hooks (
beforeAll,beforeEach,afterEach, andafterAll) to support setup and teardown by @DmitrySharabin and @LeaVerou in #65, #67, and #68 - Make
throws,maxTime, andmaxTimeAsyncinheritable by @DmitrySharabin in #79 - Add support (via
throws: false) for tests that should pass with any result if they don't throw by @DmitrySharabin in #77 - Add support for generated expected values via
getExpect()by @DmitrySharabin in #84
Improvements
- Better failure display: colored diffs, dimmed unmapped values, inline or vertical alignment of actual and expected values by @DmitrySharabin in #59
- Better CI integration by @DmitrySharabin in #60
- Tests which
map()orcheck()function errors are now considered as failed by @DmitrySharabin in #61
Bug fixes
- When tests run in the browser, console messages are no longer intercepted by @DmitrySharabin in #70
- Fix bugs with time-based and error-based tests by @DmitrySharabin in #82
- Don't mix up intercepted console messages between tests when running in Node by @DmitrySharabin in #85
HTML mode
hTest HTML now lives in its own repo and has its own website (by @DmitrySharabin in #90 and #91). It also got some noticeable improvements and bug fixes:
- Expose colored diffs to the HTML mode by @DmitrySharabin in #63
- Totals are now correctly updated on tests run by @DmitrySharabin in #66
- Better rendering of nested objects by @DmitrySharabin in #69
- Skipped tests are now correctly rendered and counted by @DmitrySharabin in #71
- Fixed test isolation and the navigation between individual tests by @DmitrySharabin in #72
- In case of an error, the error details will be rendered (by @DmitrySharabin in #73), and the error stack is logged to the console on click (by @DmitrySharabin in #81)
Website and API docs improvements
- Modernize the website styles + new logo by @DmitrySharabin in #87
- Add logo, favicon, and nav links to the API docs by @DmitrySharabin in #58 and #93
- Fix types by @DmitrySharabin in #89
Full Changelog: v0.0.17...v0.0.18