-
Notifications
You must be signed in to change notification settings - Fork 0
Add helpers for testing Actions #17
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestimportantThis has higher priority than otherThis has higher priority than other
Description
For actions:
const action = await broker.getActionWithMocks('actionName', {singletons, actions, plugins);
expect(action(params)).toBeSomething();For singletons:
const singleton = await broker.getSingletonWithMocks('singletonName', {singletons});
expect(singleton).toBeSomething();For plugins:
const plugin = await broker.getPluginWithMocks('pluginName', {singletons})
expect(plugin(params)).toBeSomething();Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestimportantThis has higher priority than otherThis has higher priority than other