From 61c32261560c8752c74e1b713f91a9d502f2e9a6 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 23 Jan 2025 19:13:40 +0100 Subject: [PATCH] fix(core): Improve error logging for test modules without default promise --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/tstest.classes.tstest.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index dc15f8a..51a68c0 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-01-23 - 1.0.92 - fix(core) +Improve error logging for test modules without default promise + +- Added logging to display the exported test module content when it does not export a default promise. + ## 2025-01-23 - 1.0.91 - fix(core) Refactored tstest class to enhance promise handling for test modules. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index f955970..461ac53 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tstest', - version: '1.0.91', + version: '1.0.92', description: 'a test utility to run tests that match test/**/*.ts' } diff --git a/ts/tstest.classes.tstest.ts b/ts/tstest.classes.tstest.ts index 1de798d..77c5bd4 100644 --- a/ts/tstest.classes.tstest.ts +++ b/ts/tstest.classes.tstest.ts @@ -182,6 +182,7 @@ export class TsTest { console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'); console.error('Test module does not export a default promise.'); console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'); + console.log(`We got: ${JSON.stringify(testModule)}`); } } catch (err) {