emberjs / emberjs/ember-mocha

`setupTest` is eating exceptions

Open
#209 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
130
Forks
62
PR merge metrics
No merged PRs in 30d

Description

It looks like `setupTest` helper is not handling exceptions, and if an exception is throw from some of the `afterEachHooks` for example, the context never gets torn down, which means that the tests stop to work there.

I will take a deeper look later and will come up with a PR.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the setupTest helper and its handling of afterEachHooks. Reproduce an exception from an afterEach hook and verify that the test context is still torn down and subsequent tests continue to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.