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

[new rule] Prefer test.todo() #217

Closed
macklinu opened this issue Jan 27, 2019 · 2 comments
Closed

[new rule] Prefer test.todo() #217

macklinu opened this issue Jan 27, 2019 · 2 comments

Comments

@macklinu
Copy link
Collaborator

Introduced in Jest 24 (see this blog post), it seems like we could support a rule that would prefer the following:

test.todo('i need to write this test')

instead of:

test('i need to write this test')
// and/or
test('i need to write this test', () => {})

Haven't thought much about specifics, rule naming, etc. Just came here from the Jest 24 blog post and wanted to jot this down.

@doniyor2109
Copy link
Contributor

Hi. Can I work on this?

@SimenB
Copy link
Member

SimenB commented Jan 27, 2019

Yeah, go for it!

It should also warn against test.skip('asdasdad', () => {})

@SimenB SimenB closed this as completed in 0933d82 Jan 29, 2019
SimenB pushed a commit that referenced this issue Jan 29, 2019
# [22.2.0](v22.1.3...v22.2.0) (2019-01-29)

### Features

* **rules:** add prefer-todo rule ([#218](#218)) ([0933d82](0933d82)), closes [#217](#217)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants