Include the compiled
bin/js/CoveoJsSearchTests.js file in your test configuration.
You can import references from the component and then use them in your tests.
In this example,
MyCustomComponent is a simple custom component that registers a new event handler on the
onBuildingQuery event to change the pipeline.
And here is the test to validate this behavior.
Allows to create mocks of components required for the framework.
Allows to create fake objects like results, events and fields.
Allows to simulate some actions in the framework or in the browser.