@@ -10,7 +10,7 @@ import {
10
10
} from './setup-context' ;
11
11
import { Promise } from './-utils' ;
12
12
import settled from './settled' ;
13
- import { hbs , TemplateFactory } from 'ember-cli-htmlbars' ;
13
+ import { hbs } from 'ember-cli-htmlbars' ;
14
14
import getRootElement from './dom/get-root-element' ;
15
15
import { Owner } from './build-owner' ;
16
16
import getTestMetadata from './test-metadata' ;
@@ -21,14 +21,13 @@ import isComponent from './-internal/is-component';
21
21
import { macroCondition , dependencySatisfies } from '@embroider/macros' ;
22
22
import { ComponentRenderMap , SetUsage } from './setup-context' ;
23
23
import { ensureSafeComponent } from '@embroider/util' ;
24
- import type { ComponentInstance } from '@glimmer/interfaces' ;
25
24
26
25
const OUTLET_TEMPLATE = hbs `{{outlet}}` ;
27
26
const EMPTY_TEMPLATE = hbs `` ;
28
27
const INVOKE_PROVIDED_COMPONENT = hbs `<this.ProvidedComponent />` ;
29
28
30
29
export interface RenderingTestContext extends TestContext {
31
- render ( template : TemplateFactory ) : Promise < void > ;
30
+ render ( template : object ) : Promise < void > ;
32
31
clearRender ( ) : Promise < void > ;
33
32
34
33
element : Element | Document ;
@@ -100,7 +99,7 @@ export interface RenderOptions {
100
99
await render(hbs`<div class="container"></div>`);
101
100
*/
102
101
export function render (
103
- templateOrComponent : TemplateFactory | ComponentInstance ,
102
+ templateOrComponent : object ,
104
103
options ?: RenderOptions
105
104
) : Promise < void > {
106
105
let context = getContext ( ) ;
@@ -298,7 +297,7 @@ export default function setupRenderingContext(
298
297
. then ( ( ) => {
299
298
let { owner } = context ;
300
299
301
- let renderDeprecationWrapper = function ( template : TemplateFactory ) {
300
+ let renderDeprecationWrapper = function ( template : object ) {
302
301
deprecate (
303
302
'Using this.render has been deprecated, consider using `render` imported from `@ember/test-helpers`.' ,
304
303
false ,
0 commit comments