-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer
Description
I recently stumbled upon this. A test file containing the following:
describe('something', () => {
before(() => { console.log('I should really not run') })
it.skip('skipped test', () => {})
after(() => { console.log('I should really not run either') })
})
Will produce the following output:
something
I should really not run
- skipped test
I should really not run either
0 passing (8ms)
1 pending
The workaround is to skip the entire describe() instead of the individual tests, so I wonder if there's interest in fixing this. Should a before or after function be preparing or cleaning up a test which didn't run?
Thanks for this amazing piece of software ❤️
PericlesFeltrin
Metadata
Metadata
Assignees
Labels
status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer
Type
Projects
Status
No status