Skip to content

Commit

Permalink
fix static app test
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 21, 2024
1 parent ada7654 commit 7d20854
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/scenarios/static-app-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ appScenarios
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { MacrosConfig } = require('@embroider/macros/src/node');
const { maybeEmbroider } = require('@embroider/test-setup');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
Expand All @@ -311,19 +312,7 @@ appScenarios
}
});
MacrosConfig.for(app).setOwnConfig(__filename, {
isClassic: Boolean(process.env.CLASSIC),
});
if (process.env.CLASSIC) {
return app.toTree();
}
const { compatBuild, recommendedOptions } = require('@embroider/compat');
const Webpack = require('@embroider/webpack').Webpack;
return compatBuild(app, Webpack, {
...recommendedOptions.optimized,
return maybeEmbroider(app, {
packageRules: [
{
package: 'app-template',
Expand Down

0 comments on commit 7d20854

Please sign in to comment.