Releases: BRIKEV/twd-cli
Releases · BRIKEV/twd-cli
v1.1.9
v1.1.8
- chore: update twd-js to 1.7.0
v1.1.6
What's Changed
- chore: update twd-js to 1.6.6
v1.1.5
What's Changed
Bug Fixes
- Fix mock overlap in contract validation — mocks sharing the same alias no longer silently overwrite each other (#4)
New Features
- Contract reports now show the test name and occurrence for each validated mock (e.g.
mock "getPets" — in "Cart > should load items") - Composite dedup key (
method:url:status:testId:occurrence) replaces alias-only key, so the same mock used multiple times in a test is tracked independently buildTestPathutility walks the handler parent chain to build full test path stringsformatMockLabelutility formats mock labels with ordinal occurrence suffixes (2nd, 3rd…)
v1.1.4
Changes
- chore: update dependencies
- chore: update openapi-mock-validator to 0.1.4
v1.1.3
Changes
- chore: update dependencies
- chore: update openapi-mock-validator to 0.1.3
v1.1.2
Dependencies
openapi-mock-validator@0.1.2
v1.1.1
Dependencies
openapi-mock-validator@0.1.1
v1.1.0
Contract Validation & GitHub Action
Features
- Contract validation — validate collected mocks against OpenAPI 3.0/3.1 specs at the end of the test run
- Markdown PR reports — compact summary table posted as a PR comment when
contractReportPathis configured - Composite GitHub Action (
BRIKEV/twd-cli/.github/actions/run) — replaces Puppeteer cache, Chrome install, twd-cli run, and contract report posting in a single step - Comprehensive schema validation — string formats (uuid, email, date-time, uri, ipv4, ipv6), number constraints (min, max, exclusiveMin/Max, multipleOf), enum, array constraints (minItems, maxItems, uniqueItems), additionalProperties, nullable (3.0 and 3.1)
Fixes
- Mock collector keyed by alias so all mocks appear in the report
- Lockfile regenerated for cross-platform CI compatibility
Performance
- Removed unnecessary
twd.visit()from mock-only tests - Reuse Ajv instance across validations (14x faster validation)
Dependencies
openapi-mock-validator@0.1.0twd-js@1.6.4
v1.0.20
- chore: update twd-js to 1.6.2