Skip to content

v3.0.0

Choose a tag to compare

@bahmutov bahmutov released this 16 Jan 19:37
· 95 commits to master since this release
89e7203

3.0.0 (2019-01-16)

Breaking change

Potentially breaking change. Now this module will only detect describe.only, context.only and it.only strings, not every ".only" word.

Example:

// this spec has .only in the comment and it is ok
describe.only('detects this suite', () => {
  context.only('detects this context', () => {
    it('is normal test', () => {
      // .only is inside and it is ok
    })

    it.only('this test is detected', () => {})
  })
})

In the above file, the following will be detected

spec.js:2:describe.only('detects this suite', () => {
spec.js:3:  context.only('detects this context', () => {
spec.js:8:    it.only('this test is detected', () => {})

The other ".only" words in the comments will be allowed.