Skip to content

Commit 1acd383

Browse files
committed
teardown context
1 parent cc759bf commit 1acd383

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

addon/src/teardown-context.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { TestContext } from './setup-context';
2-
import Ember from 'ember';
2+
import { setTesting } from '@ember/debug';
33
import { unsetContext } from './setup-context.ts';
44
import settled, { _teardownAJAXHooks } from './settled.ts';
55
import { _cleanupOnerror } from './setup-onerror.ts';
@@ -31,14 +31,10 @@ export default function teardownContext(
3131
return Promise.resolve()
3232
.then(() => {
3333
_cleanupOnerror(context);
34-
3534
_teardownAJAXHooks();
3635

37-
// SAFETY: this is intimate API *designed* for us to override.
38-
(Ember as any).testing = false;
39-
36+
setTesting(false);
4037
unsetContext();
41-
4238
destroy(context.owner);
4339
})
4440
.finally(() => {

0 commit comments

Comments
 (0)