-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isTesting
from @embroider/macros
returns false in tests if ember-classic-decorator
is a devDependency
#99
Comments
@embroider/macros
isTesting returns false from tests if ember-classic-decorator is a devDependency isTesting
from @embroider/macros
returns false in tests if ember-classic-decorator
is a devDependency
Took me quite a while to get to the same conclusion @mrloop! To give a bit more context, this issue happens when using a combinasion of I hit this issue while upgrading or app from Looks like At the end of this module, we do let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;
if (updaters) {
let methods = updaterMethods();
for (let updater of updaters) {
updater(methods);
}
} But |
Here's a repo with a bare ember app + https://github.com/bartocc/ember-classic-decorator-issues-99 |
ember-classic-decorator was supposed to be used during the transition period while converting from classic classes to native. It is time to get rid of it as it creates issues like this: emberjs/ember-classic-decorator#99 emberjs/ember-classic-decorator#74 etc. The transition is easy, just replace this.set with set(this, ...
I've a minimal reproduction here https://github.com/mrloop/em-user-activity initially thought it was
ember-user-activity
causing the issue but it depends onember-classic-decorator
and the issue occurs with justember-classic-decorator
declared as a devDependency.In the demonstration app the following test passes when
ember-classic-decorator
is not used.When
ember-classic-decorator
is installedisTesting()
returnsfalse
in the test.The text was updated successfully, but these errors were encountered: