Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce it block to begin with lower case test decription #46

Closed
ismail-syed opened this issue Jan 9, 2018 · 2 comments · Fixed by severest/retrobot#29
Closed

Enforce it block to begin with lower case test decription #46

ismail-syed opened this issue Jan 9, 2018 · 2 comments · Fixed by severest/retrobot#29

Comments

@ismail-syed
Copy link
Contributor

Some projects prefer that descriptions in it blocks beginning with lowercase letters. Is this something that can be enforced as a rule in eslint-plugin-jest

eg:

The following patterns are considered warnings:

it('Adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});

These patterns would not be considered warnings:

it('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});
@SimenB
Copy link
Member

SimenB commented Jan 9, 2018

I see no reason not to have a rule for this. @thymikee thoughts?

@thymikee
Copy link
Member

thymikee commented Jan 9, 2018

Makes sense, just don't make it recommended/default 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants