moduleForComponent fails "Unable to find partial with name"
See original GitHub issueI have a component that named x-popover
. Unit tests for x-popover
fails because of this line in x-popover.hbs
{{partial "todo-assign-dropdown"}}
It throws error:
Died on test #2 at test (http://localhost:4200/assets/test-support.js:284:13) at eval (app/tests/unit/components/x-popover-test.js:13:5) at requireModule (http://localhost:4200/assets/vendor.js:77:29) at http://localhost:4200/assets/test-loader.js:14:29: Assertion Failed: Unable to find partial with name 'todo-assign-dropdown'.
todo-assign-dropdown
is placed in templates folder with name -todo-assign-dropdown.hbs
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Unable to find partial in a component test - ember.js
I have a component test that is failing because it can't find a partial that the template is rendering. The specific error is...
Read more >User {{partial}} with a teamplate in nested directory ... - Ember.JS
Uncaught Error: Assertion Failed : Unable to find partial with name 'fileB'. If I refer to a template which is directly below the...
Read more >ember-qunit | Yarn - Package Manager
'assert' is undefined #142; Exporting QUnit.push #140; moduleForComponent fails "Unable to find partial with name" #110. Merged pull requests:.
Read more >Source - GitHub
... "Unable to find partial with name" [\#202](https://github.com/emberjs/ember-qunit/issues/202) - needs fails with single-character underscore helper name ...
Read more >ember-data-factory-guy - npm
get attributes for factory defined models with attributesFor ... So, for the model User , the factory name would be user; Create factory ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Basically the issue is that Ember is doing “weird” things for partials (it prepends an underscore). The following is hideous but will get you working for now:
The factory that Ember (and ember-qunit) is looking for
template:path/to/partial
does not match the actual module path.@rwjblue I’m getting
Uncaught TypeError: this.container.register is not a function