@jterrazz/test 6.4.1 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1554,8 +1554,9 @@ async function startApp(target, options) {
1554
1554
  servicesMap[key] = svc;
1555
1555
  }
1556
1556
  const factoryResult = target.factory(servicesMap);
1557
- const honoApp = "server" in factoryResult ? factoryResult.server : factoryResult;
1558
- const jobs = "jobs" in factoryResult ? factoryResult.jobs : void 0;
1557
+ const isComposite = Array.isArray(factoryResult.jobs);
1558
+ const honoApp = isComposite ? factoryResult.server : factoryResult;
1559
+ const jobs = isComposite ? factoryResult.jobs : void 0;
1559
1560
  const database = orchestrator.getDatabase() ?? void 0;
1560
1561
  const databases = orchestrator.getDatabases();
1561
1562
  const runner = createSpecificationRunner({