Testy / TestyTs

✔️ Modern TypeScript testing framework.
http://testy.github.io
ISC License
123 stars 8 forks source link

Error handling for suit visitor #99

Open eudgen-dev opened 2 years ago

eudgen-dev commented 2 years ago

Hi,

Please add error handling for @BeforeAll, @AfterAll, @BeforeEach, @AfterEach methods

Version: 2.0.0-beta.7

ex:

@TestSuite()
export class TestSuit {
  @BeforeAll()
  async beforeAll() {
    throw new Error('Some error');
  }

  @Test()
  public test() {
    ok(true);
  }
}

The output is:

Root TestSuit Summary: 0/1 passed, 1/1 failed, 0/1 skipped. (0s)

There are any info about the exception