Skip to content
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

[Glimmer 2] Basic component unit test not working #14286

Closed
amk221 opened this issue Sep 13, 2016 · 1 comment · Fixed by #14312
Closed

[Glimmer 2] Basic component unit test not working #14286

amk221 opened this issue Sep 13, 2016 · 1 comment · Fixed by #14312

Comments

@amk221
Copy link

amk221 commented Sep 13, 2016

TypeError: Template.create is not a function

Twiddle: https://ember-twiddle.com/#/2f7703742f16e27d647c777701c2842b?openFiles=tests.unit.components.my-component-test.js%2Ctemplates.components.my-component.hbs (switch from release -> alpha to see failure)

Ember CLI demo: https://github.com/amk221/-ember-cli-component-unit-test/blob/master/tests/unit/my-component-test.js#L10

(rwjblue mentioned to file this here, even though likely a ember-test-helpers bug)

@rwjblue
Copy link
Member

rwjblue commented Sep 17, 2016

emberjs/ember-test-helpers#179 shows this is working now (with one exception).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants