We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc759bf commit 1acd383Copy full SHA for 1acd383
1 file changed
addon/src/teardown-context.ts
@@ -1,5 +1,5 @@
1
import type { TestContext } from './setup-context';
2
-import Ember from 'ember';
+import { setTesting } from '@ember/debug';
3
import { unsetContext } from './setup-context.ts';
4
import settled, { _teardownAJAXHooks } from './settled.ts';
5
import { _cleanupOnerror } from './setup-onerror.ts';
@@ -31,14 +31,10 @@ export default function teardownContext(
31
return Promise.resolve()
32
.then(() => {
33
_cleanupOnerror(context);
34
-
35
_teardownAJAXHooks();
36
37
- // SAFETY: this is intimate API *designed* for us to override.
38
- (Ember as any).testing = false;
39
+ setTesting(false);
40
unsetContext();
41
42
destroy(context.owner);
43
})
44
.finally(() => {
0 commit comments