fix(TsTest): Fix test module execution by ensuring promise resolution delay
This commit is contained in:
parent
64f825091d
commit
a73ce99564
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-01-23 - 1.0.94 - fix(TsTest)
|
||||||
|
Fix test module execution by ensuring promise resolution delay
|
||||||
|
|
||||||
|
- Added a delay to ensure promise resolution when dynamically importing test modules in the runInChrome method.
|
||||||
|
|
||||||
## 2025-01-23 - 1.0.93 - fix(tstest)
|
## 2025-01-23 - 1.0.93 - fix(tstest)
|
||||||
Handle globalThis.tapPromise in browser runtime evaluation
|
Handle globalThis.tapPromise in browser runtime evaluation
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '1.0.93',
|
version: '1.0.94',
|
||||||
description: 'a test utility to run tests that match test/**/*.ts'
|
description: 'a test utility to run tests that match test/**/*.ts'
|
||||||
}
|
}
|
||||||
|
@ -170,6 +170,7 @@ export class TsTest {
|
|||||||
try {
|
try {
|
||||||
// Dynamically import the test module
|
// Dynamically import the test module
|
||||||
const testModule = await import(`/${bundleName}`);
|
const testModule = await import(`/${bundleName}`);
|
||||||
|
await plugins.smartdelay.delayFor(0);
|
||||||
if (testModule && testModule.default && testModule.default instanceof Promise) {
|
if (testModule && testModule.default && testModule.default instanceof Promise) {
|
||||||
// Execute the exported test function
|
// Execute the exported test function
|
||||||
await testModule.default;
|
await testModule.default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user