Compare commits

..

No commits in common. "d0c87050c0d4c5473784f5d97451d35ae2a2bd7c" and "30ec6c5bc269e097a81d6cdcd232e2d3732bec39" have entirely different histories.

4 changed files with 2 additions and 16 deletions

View File

@ -1,11 +1,5 @@
# Changelog
## 2025-03-17 - 5.6.0 - feat(tap)
Add explicit fail method to the Tap class for better test failure handling
- Introduced fail() method that throws a custom error message to explicitly mark test failures
- Improves clarity in test flow by giving developers a direct way to trigger error states
## 2025-03-08 - 5.5.10 - fix(node)
Removed unused jest dependency from project.

View File

@ -1,7 +1,7 @@
{
"name": "@push.rocks/tapbundle",
"private": false,
"version": "5.6.0",
"version": "5.5.10",
"description": "A comprehensive testing automation library that provides a wide range of utilities and tools for TAP (Test Anything Protocol) based testing, especially suitable for projects using tapbuffer.",
"exports": {
".": "./dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/tapbundle',
version: '5.6.0',
version: '5.5.10',
description: 'A comprehensive testing automation library that provides a wide range of utilities and tools for TAP (Test Anything Protocol) based testing, especially suitable for projects using tapbuffer.'
}

View File

@ -160,14 +160,6 @@ export class Tap<T> {
public threw(err: Error) {
console.log(err);
}
/**
* Explicitly fail the current test with a custom message
* @param message - The failure message to display
*/
public fail(message: string = 'Test failed'): never {
throw new Error(message);
}
}
export let tap = new Tap();