@@ -10,7 +10,7 @@ import {
1010} from './setup-context' ;
1111import { Promise } from './-utils' ;
1212import settled from './settled' ;
13- import { hbs , TemplateFactory } from 'ember-cli-htmlbars' ;
13+ import { hbs } from 'ember-cli-htmlbars' ;
1414import getRootElement from './dom/get-root-element' ;
1515import { Owner } from './build-owner' ;
1616import getTestMetadata from './test-metadata' ;
@@ -21,14 +21,13 @@ import isComponent from './-internal/is-component';
2121import { macroCondition , dependencySatisfies } from '@embroider/macros' ;
2222import { ComponentRenderMap , SetUsage } from './setup-context' ;
2323import { ensureSafeComponent } from '@embroider/util' ;
24- import type { ComponentInstance } from '@glimmer/interfaces' ;
2524
2625const OUTLET_TEMPLATE = hbs `{{outlet}}` ;
2726const EMPTY_TEMPLATE = hbs `` ;
2827const INVOKE_PROVIDED_COMPONENT = hbs `<this.ProvidedComponent />` ;
2928
3029export interface RenderingTestContext extends TestContext {
31- render ( template : TemplateFactory ) : Promise < void > ;
30+ render ( template : object ) : Promise < void > ;
3231 clearRender ( ) : Promise < void > ;
3332
3433 element : Element | Document ;
@@ -100,7 +99,7 @@ export interface RenderOptions {
10099 await render(hbs`<div class="container"></div>`);
101100*/
102101export function render (
103- templateOrComponent : TemplateFactory | ComponentInstance ,
102+ templateOrComponent : object ,
104103 options ?: RenderOptions
105104) : Promise < void > {
106105 let context = getContext ( ) ;
@@ -298,7 +297,7 @@ export default function setupRenderingContext(
298297 . then ( ( ) => {
299298 let { owner } = context ;
300299
301- let renderDeprecationWrapper = function ( template : TemplateFactory ) {
300+ let renderDeprecationWrapper = function ( template : object ) {
302301 deprecate (
303302 'Using this.render has been deprecated, consider using `render` imported from `@ember/test-helpers`.' ,
304303 false ,
0 commit comments