@@ -7,7 +7,7 @@ import type { Resolver } from '@ember/owner';
77import { setOwner } from '@ember/application' ;
88
99import buildOwner , { type Owner } from './build-owner.ts' ;
10- import { _setupAJAXHooks , _teardownAJAXHooks } from './settled.ts' ;
10+ import { _setupAJAXHooks } from './settled.ts' ;
1111import { _prepareOnerror } from './setup-onerror.ts' ;
1212import Ember from 'ember' ;
1313import {
@@ -19,10 +19,6 @@ import global from './global.ts';
1919import { getResolver } from './resolver.ts' ;
2020import { getApplication } from './application.ts' ;
2121import getTestMetadata from './test-metadata.ts' ;
22- import {
23- registerDestructor ,
24- associateDestroyableChild ,
25- } from '@ember/destroyable' ;
2622import {
2723 getDeprecationsForContext ,
2824 getDeprecationsDuringCallbackForContext ,
@@ -211,20 +207,6 @@ export function resumeTest(): void {
211207 context . resumeTest ( ) ;
212208}
213209
214- /**
215- @private
216- @param {Object } context the test context being cleaned up
217- */
218- // eslint-disable-next-line @typescript-eslint/no-unused-vars
219- function cleanup ( context : BaseContext ) {
220- _teardownAJAXHooks ( ) ;
221-
222- // SAFETY: this is intimate API *designed* for us to override.
223- ( Ember as any ) . testing = false ;
224-
225- unsetContext ( ) ;
226- }
227-
228210/**
229211 * Returns deprecations which have occurred so far for a the current test context
230212 *
@@ -410,8 +392,6 @@ export default function setupContext<T extends object>(
410392
411393 _backburner . DEBUG = true ;
412394
413- registerDestructor ( context , cleanup ) ;
414-
415395 _prepareOnerror ( context ) ;
416396
417397 return Promise . resolve ( )
@@ -438,8 +418,6 @@ export default function setupContext<T extends object>(
438418 return buildOwner ( getApplication ( ) , getResolver ( ) ) ;
439419 } )
440420 . then ( ( owner ) => {
441- associateDestroyableChild ( context , owner ) ;
442-
443421 Object . defineProperty ( context , 'owner' , {
444422 configurable : true ,
445423 enumerable : true ,
0 commit comments