Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3655b2f734 | |||
6712ff6b07 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tstest",
|
"name": "@git.zone/tstest",
|
||||||
"version": "1.0.87",
|
"version": "1.0.88",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a test utility to run tests that match test/**/*.ts",
|
"description": "a test utility to run tests that match test/**/*.ts",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '1.0.87',
|
version: '1.0.88',
|
||||||
description: 'a test utility to run tests that match test/**/*.ts'
|
description: 'a test utility to run tests that match test/**/*.ts'
|
||||||
}
|
}
|
||||||
|
@ -170,9 +170,9 @@ 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}`);
|
||||||
if (testModule && testModule.runTest) {
|
if (testModule && testModule.runTestPromise) {
|
||||||
// Execute the exported test function
|
// Execute the exported test function
|
||||||
await testModule.runTest();
|
await testModule.runTestPromise;
|
||||||
} else {
|
} else {
|
||||||
console.error('Test module does not export runTest function.');
|
console.error('Test module does not export runTest function.');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user