Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest wait for timeout

it('has working hooks', done => {
  setTimeout(() => {
    console.log("Why don't I run?")
    expect(true).toBe(true)
    done()
  }, 15000)
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jest #wait #timeout
ADD COMMENT
Topic
Name
8+3 =