question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

render does not reject when rendering fails

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Reactions:7
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
buschtoenscommented, Feb 24, 2022

I’ve started a PR to finally fix this: #1194. I would appreciate your thoughts!

1reaction
MrChocolatinecommented, Aug 4, 2020

Any news about this? After more than 2 years?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found