Skip to content

Mini reporter clobbers stdout #1953

@mesqueeb

Description

@mesqueeb

Issuehunt badges

Ava: "^1.0.0-beta.8",

I'm trying a simple wait function:

function wait (sec) {
  const ms = (sec) ? sec * 1000 : 1000
  return new Promise((resolve, reject) => {
    return setTimeout(resolve, ms)
  })
}

test('test wait', async t => {
  let a
  console.log('_0')
  a = await wait()
  console.log('_1')
  a = await wait(2)
  console.log('_2')
  t.pass()
})

It will pass but not console.log anything after _0

There is a $60.00 open bounty on this issue. Add more on Issuehunt.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions