Skip to content

Commit

Permalink
Merge pull request #430 from alexlafroscia/embroider-test-setup
Browse files Browse the repository at this point in the history
Configure `@embroider/test-setup`
  • Loading branch information
maxfierke authored Jun 16, 2021
2 parents f536568 + 41896f6 commit 893669c
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 120 deletions.
3 changes: 3 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const getChannelURL = require('ember-source-channel-url');
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function () {
return {
Expand Down Expand Up @@ -89,6 +90,8 @@ module.exports = async function () {
},
command: 'tsc',
},
embroiderSafe(),
embroiderOptimized(),
],
};
};
3 changes: 2 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
const { maybeEmbroider } = require('@embroider/test-setup');
const urls = require('./lib/prember-urls');

module.exports = function (defaults) {
Expand Down Expand Up @@ -47,5 +48,5 @@ module.exports = function (defaults) {
behave. You most likely want to be modifying `./index.js` or app's build file
*/

return app.toTree();
return maybeEmbroider(app);
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"@ember/jquery": "^0.6.1",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.2.3",
"@embroider/macros": "^0.10.0",
"@embroider/macros": "^0.41.0",
"@embroider/test-setup": "^0.41.0",
"@glimmer/component": "^1.0.2",
"@glimmer/tracking": "^1.0.2",
"@types/ember": "^3.16.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/no-render-breaking-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ module('Integration | no render breaking', function (hooks) {
);

await render(hbs`
{{#macroIf (macroDependencySatisfies "ember-source" ">= 3.15.0")}}
{{#if (macroCondition (macroDependencySatisfies "ember-source" ">= 3.15.0"))}}
<ECTest {{autofocus}} />
{{/macroIf}}
{{/if}}
`);
assert.ok(true, 'Renders');
});
Expand Down
Loading

0 comments on commit 893669c

Please sign in to comment.