Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
3655b2f734 | |||
6712ff6b07 | |||
ef5efc0a93 | |||
f305547116 | |||
033a0a806c | |||
7f87c24ad8 | |||
ac08bdffe5 | |||
eb64cb4f71 |
18
package.json
18
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@git.zone/tstest",
|
||||
"version": "1.0.84",
|
||||
"version": "1.0.88",
|
||||
"private": false,
|
||||
"description": "a test utility to run tests that match test/**/*.ts",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -20,24 +20,24 @@
|
||||
"buildDocs": "tsdoc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.70",
|
||||
"@types/node": "^20.9.0"
|
||||
"@git.zone/tsbuild": "^2.1.72",
|
||||
"@types/node": "^20.11.25"
|
||||
},
|
||||
"dependencies": {
|
||||
"@api.global/typedserver": "^3.0.9",
|
||||
"@git.zone/tsbundle": "^2.0.10",
|
||||
"@api.global/typedserver": "^3.0.27",
|
||||
"@git.zone/tsbundle": "^2.0.15",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@push.rocks/consolecolor": "^2.0.1",
|
||||
"@push.rocks/smartbrowser": "^2.0.6",
|
||||
"@push.rocks/smartdelay": "^3.0.5",
|
||||
"@push.rocks/smartfile": "^11.0.0",
|
||||
"@push.rocks/smartfile": "^11.0.4",
|
||||
"@push.rocks/smartlog": "^3.0.3",
|
||||
"@push.rocks/smartpromise": "^4.0.3",
|
||||
"@push.rocks/smartshell": "^3.0.3",
|
||||
"@push.rocks/tapbundle": "^5.0.15",
|
||||
"@types/ws": "^8.5.9",
|
||||
"figures": "^6.0.1",
|
||||
"ws": "^8.14.2"
|
||||
"@types/ws": "^8.5.10",
|
||||
"figures": "^6.1.0",
|
||||
"ws": "^8.16.0"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
730
pnpm-lock.yaml
generated
730
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tstest',
|
||||
version: '1.0.84',
|
||||
version: '1.0.88',
|
||||
description: 'a test utility to run tests that match test/**/*.ts'
|
||||
}
|
||||
|
@ -170,14 +170,14 @@ export class TsTest {
|
||||
try {
|
||||
// Dynamically import the test module
|
||||
const testModule = await import(`/${bundleName}`);
|
||||
if (testModule && testModule.runTest) {
|
||||
if (testModule && testModule.runTestPromise) {
|
||||
// Execute the exported test function
|
||||
await testModule.runTest();
|
||||
await testModule.runTestPromise;
|
||||
} else {
|
||||
originalError('Test module does not export runTest function.');
|
||||
console.error('Test module does not export runTest function.');
|
||||
}
|
||||
} catch (err) {
|
||||
originalError(err);
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
return logStore.join('\n');
|
||||
|
Reference in New Issue
Block a user