import Runnable from "./runnable" ; import Test from "./test" ; private class Context { private _runnable ; test ? : Runnable | undefined ; currentTest ? : Test | undefined ; private param { Runnable } runnable return { Context } runnable ( runnable ? ) { if ( ! arguments . length ) { return this . _runnable ; } this . test = this . _runnable = runnable ; return this ; } private param { number } ms return { Context } timeout ( ms ? ) { if ( ! arguments . length ) { return this . runnable ( ) . timeout ( ) ; } this . runnable ( ) . timeout ( ms ) ; return this ; } private param { number } ms return { Context } slow ( ms ? ) { if ( ! arguments . length ) { return this . runnable ( ) . slow ( ) ; } this . runnable ( ) . slow ( ms ) ; return this ; } private throws skip ( ) { this . runnable ( ) . skip ( ) ; } /**
     * Set or get a number of allowed retries on failed tests
     */ retries ( n ? ) { if ( ! arguments . length ) { return this . runnable ( ) . retries ( ) ; } this . runnable ( ) . retries ( n ) ; return this ; } } export default Context ;