Skip to content

Commit 1b35f75

Browse files
committed
Fix
1 parent d84c001 commit 1b35f75

5 files changed

Lines changed: 18 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/node_modules/
22
.log/
3-
/my-addon/
3+
my-addon/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.md
44
files/
55
tests/fixtures/
6+
my-addon/
67

78
node_modules/
89

files/tests/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<script src="/testem.js" integrity="" data-embroider-ignore></script>
1818
<script type="module">
1919
import "ember-testing";
20-
import "@embroider/macros/src/vendor/embroider-macros-test-support";
2120
</script>
2221

2322
<script type="module">

files/tests/test-helper.__ext__

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ class TestApp extends EmberApp {
2222
Router.map(function () {});
2323

2424
export function start() {
25-
const config = getGlobalConfig()['@embroider/macros'];
26-
if (config) config.isTesting = true;
25+
const theMacrosGlobal = getGlobalConfig();
26+
27+
theMacrosGlobal['@embroider/macros'] ||= {};
28+
theMacrosGlobal['@embroider/macros'].isTesting ||= true;
29+
2730
setApplication(
2831
TestApp.create({
2932
autoboot: false,

tests/fixtures/build-mode-tests/debug-utils-test.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ module('debug utils remain in the build', function () {
1010
qAssert.throws(() => {
1111
assert('should throw');
1212
}, /should throw/, `The error "should throw" is thrown`);
13-
14-
});
15-
16-
test('DEBUG', function (assert) {
17-
if (DEBUG) {
18-
assert.step('DEBUG');
19-
}
20-
21-
assert.verifySteps(['DEBUG']);
2213
});
2314

2415
test('isTesting', function (assert) {
@@ -28,4 +19,15 @@ module('debug utils remain in the build', function () {
2819
test('isDevelopingApp', function (assert) {
2920
assert.strictEqual(isDevelopingApp(), true, `isDevelopingApp() === true`);
3021
});
22+
23+
24+
module('not supported', function () {
25+
test('DEBUG', function (assert) {
26+
if (DEBUG) {
27+
assert.step('DEBUG');
28+
}
29+
30+
assert.verifySteps([]);
31+
});
32+
});
3133
});

0 commit comments

Comments
 (0)