Skip to content

Add support for skip() (#3706) - #3735

Merged
azz merged 2 commits into
prettier:masterfrom
tmquinn:3706-add-support-for-skip
Jan 13, 2018
Merged

azz merged 2 commits into
prettier:masterfrom
tmquinn:3706-add-support-for-skip

Conversation

@tmquinn

@tmquinn tmquinn commented Jan 12, 2018 •

Copy link
Copy Markdown
Contributor

Comment thread src/language-js/printer-estree.js Outdated
// eg; `describe("some string", (done) => {})`
function isTestCall(n) {
const unitTestRe = /^(f|x)?(it|describe|test)$/;
const unitTestRe = /^(f|x)?(it|describe|test|skip)$/;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making a PR! This will also match fskip and xskip; could you adjust the regexp so it won't? I think /^(skip|(f|x)?(it|describe|test))$/ should do it.


xtest("does something really long and complicated so I have to write a very long name for the describe block", () => {});

skip(`does something really long and complicated so I have to write a very long name for the test`, () => {});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a test with a double-quoted string?

@tmquinn

tmquinn commented Jan 13, 2018

Copy link
Copy Markdown
Contributor Author

Thanks again for your prompt attention on this!

@suchipi suchipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for this contribution!

@azz
azz merged commit aa0437c into prettier:master Jan 13, 2018
@azz

azz commented Jan 13, 2018

Copy link
Copy Markdown
Member

Thanks!

@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants