fix(tapbundle): Pass TapTools to suite lifecycle hooks (beforeAll/afterAll) and update @push.rocks/smarts3 to ^3.0.0
This commit is contained in:
@@ -3,6 +3,7 @@ import * as plugins from './tapbundle.plugins.js';
|
||||
import { type IPreTaskFunction, PreTask } from './tapbundle.classes.pretask.js';
|
||||
import { type IPostTaskFunction, PostTask } from './tapbundle.classes.posttask.js';
|
||||
import { TapTest, type ITestFunction } from './tapbundle.classes.taptest.js';
|
||||
import { TapTools } from './tapbundle.classes.taptools.js';
|
||||
import { ProtocolEmitter, type ITestEvent } from '../dist_ts_tapbundle_protocol/index.js';
|
||||
import type { ITapSettings } from './tapbundle.interfaces.js';
|
||||
import { SettingsManager } from './tapbundle.classes.settingsmanager.js';
|
||||
@@ -645,7 +646,7 @@ export class Tap<T> {
|
||||
|
||||
// Run beforeAll hook for this suite
|
||||
if (suite.beforeAll) {
|
||||
await suite.beforeAll(new plugins.smartpromise.Deferred().promise as any);
|
||||
await suite.beforeAll(new TapTools(null as any));
|
||||
}
|
||||
|
||||
// Run beforeEach from parent suites
|
||||
@@ -720,7 +721,7 @@ export class Tap<T> {
|
||||
|
||||
// Run afterAll hook for this suite
|
||||
if (suite.afterAll) {
|
||||
await suite.afterAll(new plugins.smartpromise.Deferred().promise as any);
|
||||
await suite.afterAll(new TapTools(null as any));
|
||||
}
|
||||
|
||||
// Emit suite:completed event
|
||||
|
||||
Reference in New Issue
Block a user