Skip to content

Commit d84c001

Browse files
committed
Use embroider/macros
1 parent 2ec9925 commit d84c001

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

files/tests/test-helper.__ext__

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as QUnit from 'qunit';
44
import { setApplication } from '@ember/test-helpers';
55
import { setup } from 'qunit-dom';
66
import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
7+
import { getGlobalConfig } from '@embroider/macros/src/addon/runtime';
78

89
class Router extends EmberRouter {
910
location = 'none';
@@ -21,6 +22,8 @@ class TestApp extends EmberApp {
2122
Router.map(function () {});
2223

2324
export function start() {
25+
const config = getGlobalConfig()['@embroider/macros'];
26+
if (config) config.isTesting = true;
2427
setApplication(
2528
TestApp.create({
2629
autoboot: false,

0 commit comments

Comments
 (0)