Simply:
<MyComponent @link={{link ...}}/>
inside the component:
export default class MyComponent extends Component {
@command
go = commandFor([
this.args.link,
this.somethingElse
]);
}
and then writing tests for this:
test('it can follow the link', function () {
this.link = linkFor('somewhere');
this.link.onTransitionTo = () => assert.step('link clicked');
await render(hbs`<MyComponent @link={{this.link}}/>`);
await click(...);
assert.verifySteps(['link clicked']);
});
the click() will actually make the link to be transitioned and not prevented.