fix(TsTest): Fix test module execution by ensuring promise resolution delay

This commit is contained in:
2025-01-23 19:25:13 +01:00
parent 64f825091d
commit a73ce99564
3 changed files with 7 additions and 1 deletions

View File

@@ -170,6 +170,7 @@ export class TsTest {
try {
// Dynamically import the test module
const testModule = await import(`/${bundleName}`);
await plugins.smartdelay.delayFor(0);
if (testModule && testModule.default && testModule.default instanceof Promise) {
// Execute the exported test function
await testModule.default;