import { TestCase } from '../../../lib/decorators/testCase.decorator' ; import { BeforeEach , Test , TestSuite , XTest } from '../../../testyCore' ; @ TestSuite ( 'Throws During Before Each Test Suite' ) export class ThrowsDuringBeforeEachTestSuite { @ BeforeEach ( ) public beforeEach ( ) { throw new Error ( 'This should be handled.' ) ; } @ Test ( 'a' ) public a ( ) { } @ Test ( 'b' ) public b ( ) { } @ Test ( 'c' ) @ TestCase ( 'c.1' ) @ TestCase ( 'c.2' ) @ TestCase ( 'c.3' ) public c ( ) { } @ XTest ( 'd' ) public d ( ) { } }