render does not reject when rendering fails
See original GitHub issueI would have expected this test to pass, but it fails with “expected not to get here” in addition to an out-of-band qunit failure for the actual Compiler Error: not-a-component is not a helper
.
test('render can throw', async function(assert) {
try {
await render(hbs`{{not-a-component x="y"}}`);
} catch (err) {
assert.ok(/not-a-component is not a helper/.test(err.message), "expected to see failure");
}
throw new Error("expected not to get here");
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:15 (11 by maintainers)
Top Results From Across the Web
I am not able to render 2 components based on result of 2 ...
I am sending two fetch calls in a Promise.allSettled() and rendering components based on the result a component with data if it is...
Read more >Cannot call `render` without having first called ... - Ember.JS
I get this strange error message when I tried to run a test for my component. Promise rejected during “MY_COMPONENT_TEST”: Cannot call ...
Read more >Handling rejected promises in React with an error boundary
The problem with unhandled promise rejections is that the user may not know that something went wrong. Depending on what went wrong and...
Read more >Frequently Asked Questions - Jasmine Documentation
I'm getting an error like "Property aProperty does not have access type get". How can I configure a spy to return a rejected...
Read more >Testing-library: avoid these mistakes in async tests
Sometimes, tests start to unexpectedly fail even if no changes were ... care how many requests happen while the component is being rendered....
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
I’ve started a PR to finally fix this: #1194. I would appreciate your thoughts!
Any news about this? After more than 2 years?