Skip to content

Commit

Permalink
regression test coverage for #1231
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Jul 4, 2022
1 parent 68851b2 commit e2aa51b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/scenarios/stage1-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@ appScenarios

undefinedFastboot.pkg.name = 'undefined-fastboot';

// An addon that never extends ember-cli's Addon base class. Mostly this is
// here to make sure nothing blows up when it is present. We don't actually
// try to do anything with the custom code in index.js.
let weirdBase = baseAddon();
merge(weirdBase.files, {
'index.js': `
module.exports = class {
}
`,
});
weirdBase.pkg.name = 'weird-base';

// Use one addon to patch the hook on another (yes, this happens in the
// wild...), and ensure we still detect the customized hook
let externallyCustomized = baseAddon();
Expand Down Expand Up @@ -367,6 +380,7 @@ appScenarios
project.addDependency(suppressed);
project.addDependency(suppressedCustom);
project.addDependency(patchesMethodName);
project.addDependency(weirdBase);

project.pkg['ember-addon'] = { paths: ['lib/disabled-in-repo-addon', 'lib/blacklisted-in-repo-addon'] };
merge(project.files, loadFromFixtureData('blacklisted-addon-build-options'));
Expand Down

0 comments on commit e2aa51b

Please sign in to comment.