Compare commits

..

10 Commits

Author SHA1 Message Date
9669445646 1.0.89 2024-04-18 20:47:26 +02:00
928d9d0616 fix(core): update 2024-04-18 20:47:25 +02:00
3655b2f734 1.0.88 2024-03-07 13:17:29 +01:00
6712ff6b07 fix(core): update 2024-03-07 13:17:28 +01:00
ef5efc0a93 1.0.87 2024-03-07 13:10:58 +01:00
f305547116 fix(core): update 2024-03-07 13:10:57 +01:00
033a0a806c 1.0.86 2024-01-19 20:59:02 +01:00
7f87c24ad8 fix(core): update 2024-01-19 20:59:01 +01:00
ac08bdffe5 1.0.85 2023-11-10 12:44:08 +01:00
eb64cb4f71 fix(core): update 2023-11-10 12:44:08 +01:00
4 changed files with 811 additions and 1388 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@git.zone/tstest", "name": "@git.zone/tstest",
"version": "1.0.84", "version": "1.0.89",
"private": false, "private": false,
"description": "a test utility to run tests that match test/**/*.ts", "description": "a test utility to run tests that match test/**/*.ts",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -20,24 +20,24 @@
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.70", "@git.zone/tsbuild": "^2.1.72",
"@types/node": "^20.9.0" "@types/node": "^20.12.7"
}, },
"dependencies": { "dependencies": {
"@api.global/typedserver": "^3.0.9", "@api.global/typedserver": "^3.0.27",
"@git.zone/tsbundle": "^2.0.10", "@git.zone/tsbundle": "^2.0.15",
"@git.zone/tsrun": "^1.2.46", "@git.zone/tsrun": "^1.2.46",
"@push.rocks/consolecolor": "^2.0.1", "@push.rocks/consolecolor": "^2.0.2",
"@push.rocks/smartbrowser": "^2.0.6", "@push.rocks/smartbrowser": "^2.0.6",
"@push.rocks/smartdelay": "^3.0.5", "@push.rocks/smartdelay": "^3.0.5",
"@push.rocks/smartfile": "^11.0.0", "@push.rocks/smartfile": "^11.0.14",
"@push.rocks/smartlog": "^3.0.3", "@push.rocks/smartlog": "^3.0.3",
"@push.rocks/smartpromise": "^4.0.3", "@push.rocks/smartpromise": "^4.0.3",
"@push.rocks/smartshell": "^3.0.3", "@push.rocks/smartshell": "^3.0.5",
"@push.rocks/tapbundle": "^5.0.15", "@push.rocks/tapbundle": "^5.0.23",
"@types/ws": "^8.5.9", "@types/ws": "^8.5.10",
"figures": "^6.0.1", "figures": "^6.1.0",
"ws": "^8.14.2" "ws": "^8.16.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

2162
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tstest', name: '@git.zone/tstest',
version: '1.0.84', version: '1.0.89',
description: 'a test utility to run tests that match test/**/*.ts' description: 'a test utility to run tests that match test/**/*.ts'
} }

View File

@ -170,14 +170,17 @@ export class TsTest {
try { try {
// Dynamically import the test module // Dynamically import the test module
const testModule = await import(`/${bundleName}`); const testModule = await import(`/${bundleName}`);
if (testModule && testModule.runTest) { if (testModule && testModule.default && testModule.default instanceof Promise) {
// Execute the exported test function // Execute the exported test function
await testModule.runTest(); await testModule.runTestPromise;
} else { } else {
originalError('Test module does not export runTest function.'); console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
console.error('Test module does not export a default promise.');
console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
} }
} catch (err) { } catch (err) {
originalError(err); console.error(err);
} }
return logStore.join('\n'); return logStore.join('\n');