Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
d0c87050c0 | |||
281c203e5c | |||
30ec6c5bc2 | |||
56f4a65a1a | |||
6868a747ed | |||
1f68396aea | |||
84c5b85a3a | |||
a56319dcdb | |||
2f30e59222 | |||
3d1fdd7c79 | |||
f9f808ef5b | |||
d2cf005052 | |||
54f3eaa142 | |||
fd4e60e020 | |||
a21ce29a15 | |||
dc4695bc38 |
57
changelog.md
57
changelog.md
@ -1,5 +1,62 @@
|
||||
# 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.
|
||||
|
||||
- Updated @push.rocks/smartexpect from ^1.2.1 to ^1.3.0.
|
||||
- Updated @push.rocks/smartfile from ^11.0.21 to ^11.0.23.
|
||||
- Updated @push.rocks/smartshell from ^3.0.6 to ^3.2.2.
|
||||
- Updated @push.rocks/smarttime from ^4.0.8 to ^4.1.1.
|
||||
- Updated @types/node from ^22.9.3 to ^22.10.2.
|
||||
|
||||
## 2024-11-23 - 5.5.3 - fix(docs)
|
||||
Update description and keywords in package files for clarity
|
||||
|
||||
|
20
package.json
20
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@push.rocks/tapbundle",
|
||||
"private": false,
|
||||
"version": "5.5.3",
|
||||
"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.2.1",
|
||||
"@push.rocks/smartfile": "^11.0.21",
|
||||
"@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.0.6",
|
||||
"@push.rocks/smarttime": "^4.0.8",
|
||||
"@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.9.3",
|
||||
"randomstring": "^1.3.0"
|
||||
"@git.zone/tstest": "^1.0.96",
|
||||
"@types/node": "^22.13.10",
|
||||
"randomstring": "^1.3.1"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
3419
pnpm-lock.yaml
generated
3419
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/tapbundle',
|
||||
version: '5.5.3',
|
||||
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.'
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -60,5 +60,9 @@ export class TapTools {
|
||||
return plugins.smartpromise.defer();
|
||||
}
|
||||
|
||||
public cumulativeDefer() {
|
||||
return plugins.smartpromise.cumulativeDefer();
|
||||
}
|
||||
|
||||
public smartjson = plugins.smartjson;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
export * from './classes.tapnodetools.js';
|
||||
|
||||
import { expect as jestExpect } from 'expect';
|
||||
|
||||
export { jestExpect };
|
||||
|
Reference in New Issue
Block a user