Testy / TestyTs

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

@Timeout decorator #26

Closed Aboisier closed 5 years ago

Aboisier commented 5 years ago

Currently, if you want to set a custom timeout but do not have cases or a custom test name, you need to pass two empty arguments.

@Test(undefined, undefined, 10000) // Really slow test
async slowTest() {
    // Some test
}

As suggested by @bryanmenard in #25, it would be interesting to specify the custom timeout using a @Timeout decorator instead.

@Test()
@Timeout(7000) // Really slow test
async slowTest() {
    // Some test
}
Aboisier commented 5 years ago

Implemented in #28 .