Compare commits

...

14 Commits

Author SHA1 Message Date
d0c87050c0 5.6.0
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-03-17 14:42:18 +00:00
281c203e5c feat(tap): Add explicit fail method to the Tap class for better test failure handling 2025-03-17 14:42:18 +00:00
30ec6c5bc2 5.5.10
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-03-08 14:35:49 +00:00
56f4a65a1a fix(node): Removed unused jest dependency from project. 2025-03-08 14:35:49 +00:00
6868a747ed 5.5.9
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-03-08 14:28:35 +00:00
1f68396aea fix(dependencies): Fix missing jest dependency in package.json and update exports in ts_node/index.ts 2025-03-08 14:28:35 +00:00
84c5b85a3a 5.5.8
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-03-08 14:18:11 +00:00
a56319dcdb fix(test): Ensure compatibility with async/await in test cases. 2025-03-08 14:18:11 +00:00
2f30e59222 5.5.7
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-03-08 14:16:08 +00:00
3d1fdd7c79 fix(dependencies): Updated project dependencies to the latest versions for improved stability and performance. 2025-03-08 14:16:08 +00:00
f9f808ef5b 5.5.6
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-01-19 19:06:10 +01:00
d2cf005052 fix(dependencies): Update smartpromise dependency to version 4.2.0. 2025-01-19 19:06:10 +01:00
54f3eaa142 5.5.5
Some checks failed
Default (tags) / security (push) Failing after 2s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-01-19 18:09:47 +01:00
fd4e60e020 fix(dependencies): Update dependencies to the latest versions to address multiple fixes. 2025-01-19 18:09:47 +01:00
8 changed files with 2348 additions and 1023 deletions

View File

@ -1,5 +1,53 @@
# 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)
Fix missing jest dependency in package.json and update exports in ts_node/index.ts
- Added missing '@jest/globals' dependency to package.json.
- Updated ts_node/index.ts to properly export jest along with jestExpect.
## 2025-03-08 - 5.5.8 - fix(test)
Ensure compatibility with async/await in test cases.
## 2025-03-08 - 5.5.7 - fix(dependencies)
Updated project dependencies to the latest versions for improved stability and performance.
- Updated `@push.rocks/smartexpect` to version 1.6.1.
- Updated `@push.rocks/smartfile` to version 11.2.0.
- Updated `@push.rocks/smartpromise` to version 4.2.3.
- Updated `@push.rocks/smartshell` to version 3.2.3.
- Updated `@git.zone/tsbuild` to version 2.2.6.
- Updated `@git.zone/tstest` to version 1.0.96.
- Updated `@types/node` to version 22.13.10.
## 2025-01-19 - 5.5.6 - fix(dependencies)
Update smartpromise dependency to version 4.2.0.
- Updated @push.rocks/smartpromise dependency from version 4.1.0 to 4.2.0 in package.json.
## 2025-01-19 - 5.5.5 - fix(dependencies)
Update dependencies to the latest versions to address multiple fixes.
- Updated @push.rocks/smartexpect to version ^1.4.0.
- Updated @push.rocks/smartfile to version ^11.1.5.
- Updated @push.rocks/smartpromise to version ^4.1.0.
- Updated @types/node to version ^22.10.7.
- Updated randomstring to version ^1.3.1.
## 2024-12-30 - 5.5.4 - fix(dependencies)
Update package dependencies to their latest versions.

View File

@ -1,7 +1,7 @@
{
"name": "@push.rocks/tapbundle",
"private": false,
"version": "5.5.4",
"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.",
"exports": {
".": "./dist_ts/index.js",
@ -30,24 +30,24 @@
"@push.rocks/smartcrypto": "^2.0.4",
"@push.rocks/smartdelay": "^3.0.5",
"@push.rocks/smartenv": "^5.0.12",
"@push.rocks/smartexpect": "^1.3.0",
"@push.rocks/smartfile": "^11.0.23",
"@push.rocks/smartexpect": "^1.6.1",
"@push.rocks/smartfile": "^11.2.0",
"@push.rocks/smartjson": "^5.0.20",
"@push.rocks/smartmongo": "^2.0.10",
"@push.rocks/smartpath": "^5.0.18",
"@push.rocks/smartpromise": "^4.0.4",
"@push.rocks/smartpromise": "^4.2.3",
"@push.rocks/smartrequest": "^2.0.23",
"@push.rocks/smarts3": "^2.2.5",
"@push.rocks/smartshell": "^3.2.2",
"@push.rocks/smartshell": "^3.2.3",
"@push.rocks/smarttime": "^4.1.1",
"expect": "^29.7.0"
},
"devDependencies": {
"@git.zone/tsbuild": "^2.1.66",
"@git.zone/tsbuild": "^2.2.6",
"@git.zone/tsrun": "^1.2.43",
"@git.zone/tstest": "^1.0.77",
"@types/node": "^22.10.2",
"randomstring": "^1.3.0"
"@git.zone/tstest": "^1.0.96",
"@types/node": "^22.13.10",
"randomstring": "^1.3.1"
},
"files": [
"ts/**/*",

3288
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/tapbundle',
version: '5.5.4',
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.'
}

View File

@ -160,6 +160,14 @@ 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();

View File

@ -60,5 +60,9 @@ export class TapTools {
return plugins.smartpromise.defer();
}
public cumulativeDefer() {
return plugins.smartpromise.cumulativeDefer();
}
public smartjson = plugins.smartjson;
}

View File

@ -11,7 +11,7 @@ export class TestFileProvider {
// fetch the docker alpine image
const response = await plugins.smartrequest.getBinary(fileUrls.dockerAlpineImage);
await plugins.smartfile.fs.ensureDir(paths.testFilesDir);
const AlpineBuffer = await plugins.smartfile.memory.toFs(response.body, filePath);
await plugins.smartfile.memory.toFs(response.body, filePath);
return filePath;
}
}

View File

@ -1,5 +1,4 @@
export * from './classes.tapnodetools.js';
import { expect as jestExpect } from 'expect';
export { jestExpect };