Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
d0c87050c0 | |||
281c203e5c | |||
30ec6c5bc2 | |||
56f4a65a1a |
13
changelog.md
13
changelog.md
@ -1,5 +1,18 @@
|
|||||||
# Changelog
|
# 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.
|
||||||
|
|
||||||
|
- Removed '@jest/globals' from dependencies in package.json.
|
||||||
|
- Removed unused jest import from ts_node/index.ts.
|
||||||
|
- Kept 'expect' dependency from jest library.
|
||||||
|
|
||||||
## 2025-03-08 - 5.5.9 - fix(dependencies)
|
## 2025-03-08 - 5.5.9 - fix(dependencies)
|
||||||
Fix missing jest dependency in package.json and update exports in ts_node/index.ts
|
Fix missing jest dependency in package.json and update exports in ts_node/index.ts
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/tapbundle",
|
"name": "@push.rocks/tapbundle",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "5.5.9",
|
"version": "5.6.0",
|
||||||
"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.",
|
"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": {
|
"exports": {
|
||||||
".": "./dist_ts/index.js",
|
".": "./dist_ts/index.js",
|
||||||
@ -24,7 +24,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://code.foss.global/push.rocks/tapbundle#readme",
|
"homepage": "https://code.foss.global/push.rocks/tapbundle#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/globals": "^29.7.0",
|
|
||||||
"@open-wc/testing": "^4.0.0",
|
"@open-wc/testing": "^4.0.0",
|
||||||
"@push.rocks/consolecolor": "^2.0.2",
|
"@push.rocks/consolecolor": "^2.0.2",
|
||||||
"@push.rocks/qenv": "^6.1.0",
|
"@push.rocks/qenv": "^6.1.0",
|
||||||
|
811
pnpm-lock.yaml
generated
811
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/tapbundle',
|
name: '@push.rocks/tapbundle',
|
||||||
version: '5.5.9',
|
version: '5.6.0',
|
||||||
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.'
|
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.'
|
||||||
}
|
}
|
||||||
|
@ -160,6 +160,14 @@ export class Tap<T> {
|
|||||||
public threw(err: Error) {
|
public threw(err: Error) {
|
||||||
console.log(err);
|
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();
|
export let tap = new Tap();
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
export * from './classes.tapnodetools.js';
|
export * from './classes.tapnodetools.js';
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
|
||||||
import { expect as jestExpect } from 'expect';
|
import { expect as jestExpect } from 'expect';
|
||||||
|
|
||||||
export { jest, jestExpect };
|
export { jestExpect };
|
||||||
|
Reference in New Issue
Block a user