Skip to content

Should before and after run with skip? #1283

@unional

Description

@unional

ava: 0.18.2

import test from 'ava'

test.before(() => {
  throw new Error('should not run?')
})
test.after(() => {
  throw new Error('should not run?')
})

test.skip('some skipped test', t => { })

Currently the before() and after() is run even if the file contain only skipped tests.
Is that the expected behavior?

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