Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 732 Bytes

File metadata and controls

34 lines (28 loc) · 732 Bytes

Focus

Rule to determine if focus tests are used.

If any behavioral it, describe* invokes their only method this rule will catch them. This rule will also catch handy focus keywords like ddescribe, fdescribe, iit, and fit that some BDD frameworks support.

Example

describe.only('my cool tests', function () {
	// only
	it.only('should work', function () {
		// Cool stuff
	});

	it('should still work', function () {
		// Never called because we're only testing 'should work'
	});
});

// ddescribe
ddescribe('something', function () {
	iit('more stuff', function () {
		// Stuff
	});
});

// fdescribe
fdescribe('something else', function () {
	fit('other stuff', function () {
		// Stuff
	});
});