fix(tstest): Handle globalThis.tapPromise in browser runtime evaluation
This commit is contained in:
parent
85fec03878
commit
5ddc2d2de0
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-01-23 - 1.0.93 - fix(tstest)
|
||||||
|
Handle globalThis.tapPromise in browser runtime evaluation
|
||||||
|
|
||||||
|
- Added support for using globalThis.tapPromise in the browser evaluation logic.
|
||||||
|
- Added log messages to indicate the usage of globalThis.tapPromise.
|
||||||
|
|
||||||
## 2025-01-23 - 1.0.92 - fix(core)
|
## 2025-01-23 - 1.0.92 - fix(core)
|
||||||
Improve error logging for test modules without default promise
|
Improve error logging for test modules without default promise
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '1.0.92',
|
version: '1.0.93',
|
||||||
description: 'a test utility to run tests that match test/**/*.ts'
|
description: 'a test utility to run tests that match test/**/*.ts'
|
||||||
}
|
}
|
||||||
|
@ -178,6 +178,11 @@ export class TsTest {
|
|||||||
console.log('Test module default export is just promiselike: Something might be messing with your Promise implementation.');
|
console.log('Test module default export is just promiselike: Something might be messing with your Promise implementation.');
|
||||||
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
||||||
await testModule.default;
|
await testModule.default;
|
||||||
|
} else if (globalThis.tapPromise && globalThis.tapPromise.then === 'function') {
|
||||||
|
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
||||||
|
console.log('Using globalThis.tapPromise');
|
||||||
|
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
||||||
|
await testModule.default;
|
||||||
} else {
|
} else {
|
||||||
console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
console.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
|
||||||
console.error('Test module does not export a default promise.');
|
console.error('Test module does not export a default promise.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user