Skip to content

Commit

Permalink
Merge pull request #749 from adopted-ember-addons/fix-embroider
Browse files Browse the repository at this point in the history
update @embroider/test-setup to fix CI
  • Loading branch information
mansona authored Feb 26, 2024
2 parents 92523c2 + f06525a commit 8eb46e8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
- ember-release
- ember-beta
- ember-canary
# - embroider-safe
# - embroider-optimized
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 2 additions & 7 deletions addon/-private/options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import EmberObject, { get } from '@ember/object';
import { isDescriptor } from '../utils/utils';

const { keys } = Object;
const OPTION_KEYS = '__option_keys__';
Expand All @@ -18,11 +17,7 @@ export default class Options {
const optionKeys = keys(options);
const createParams = { [OPTION_KEYS]: optionKeys, model, attribute };

// If any of the options is a CP, we need to create a custom class for it
if (optionKeys.some((key) => isDescriptor(options[key]))) {
return OptionsObject.extend(options).create(createParams);
}

return OptionsObject.create(createParams, options);
// we have to extend here in case anyone passes options that have computedProperties.
return OptionsObject.extend(options).create(createParams);
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@ember/optional-features": "^2.0.0",
"@ember/string": "^3.0.1",
"@ember/test-helpers": "^2.9.3",
"@embroider/test-setup": "^2.1.1",
"@embroider/test-setup": "^3.0.2",
"@fortawesome/ember-fontawesome": "^1.0.0",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.4.0",
Expand Down
19 changes: 15 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8eb46e8

Please sign in to comment.