this.render() in beforeEach() is not converted to async/await
Turbo87 opened this issue · comments
Tobias Bieniek commented
moduleForComponent('foo', 'Integration | Helper | foo', {
integration: true,
async beforeEach() {
this.intl = this.container.lookup('service:intl');
await this.intl.loadLocale('en');
this.render(hbs`{{foo}}`);
},
});
Tobias Bieniek commented
It also seems that the test functions are being converted to async functions even though the async operation (render()
) happens in the beforeEach()
block
Robert Jackson commented
Ya, we convert all the tests to async all the time (for setupRenderingTest).
Robert Jackson commented
We only process the test invocations for await render at the moment. We need to apply to the lifecycle hooks also.