Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 521 Bytes

no-spec-only.md

File metadata and controls

24 lines (16 loc) · 521 Bytes

Do not push only from tests

Rule name: no-spec-only

When we test a js functionality, we can use sometime .only. But when it is the time to push our work, we do not want commit this.

Rule Details

Examples of incorrect code for this rule:

describe.only('describe', () => { })
context.only('context', () => { })
it.only('it', () => { })

Examples of correct code for this rule:

describe('describe', () => { })
context('context', () => { })
it('it', () => { })