Templates rendered in tests using ember-cli-htmlbars's hbs tag will be checked the same way as standalone hbs files.
import { render } from'@ember/test-helpers';import { hbs } from'ember-cli-htmlbars';test('MyComponent works',asyncfunction (assert) {// If `@arg` is declared to be a string, you'll get a squiggle hereawaitrender(hbs`<MyComponent @arg={{123}} />`);assert.dom().hasText('...');});
In some TypeScript codebases it's common practice to define per-module (or even per-test) context types that include additional properties. If you do this and need to access these properties in your template, you can include the context type as a parameter to render.