rprieto / mocha-steps

Sequential scenarios for mocha
73 stars 17 forks source link

how's use this.timeout in step ? #20

Closed KiPSOFT closed 5 years ago

KiPSOFT commented 5 years ago

how's use this.timeout in step ?

ojizero commented 5 years ago

Not the author here, but I did test it out, seem it behaves the same as does mocha's it, e.g.

describe('some suite', function () {
  step('some test case', function () {
    this.timeout(5000) // sets the timeout to 5 seconds for this test case
    /// ... rest of the test case body
  })
})
KiPSOFT commented 5 years ago

Thanks ojzero. I tested code a long ago don't work it. I solve my problem other ways.