fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-07 13:17:28 +01:00
parent ef5efc0a93
commit 6712ff6b07
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -170,9 +170,9 @@ 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 {
console.error('Test module does not export runTest function.');
}