import { AKEventService } from '../events/event_service.js';
export function eventServiceFaker() {
    return function ({ runner }) {
        runner.onSuite((suite) => {
            suite.onTest(installEventServiceFaker);
            suite.onGroup((group) => group.tap(installEventServiceFaker));
        });
    };
}
const installEventServiceFaker = async (test) => test
    .setup(async (t) => {
    t.context.eventServiceFaker = await AKEventService.fake();
})
    .cleanup((_, t) => {
    t.context.eventServiceFaker.restore();
});
//# sourceMappingURL=japa_event_service_faker.js.map