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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment out tests inside .each #8638

Closed
chrisblossom opened this issue Jul 3, 2019 · 5 comments
Closed

Comment out tests inside .each #8638

chrisblossom opened this issue Jul 3, 2019 · 5 comments

Comments

@chrisblossom
Copy link
Contributor

馃殌 Feature Proposal

I'd like to be able to comment out tests inside of a test.each.

Motivation

Sometimes I find it easier to debug certain tests when there aren't any excess logs. Right now I have to manually move them outside of a test.each, which is a hassle.

Example

test.each`
    example | expected
    ${1}    | ${1}
    // ${2}    | ${2}
`(
    '$example is equal to $expected',
    ({ example, expected }) => {
        console.log(example); // should only log 1
        expect(example).toEqual(expected);
    },
);

Pitch

Easily remove tests inside of a test.each will make development errors easier to debug.

@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@mikerentmeister
Copy link

I would really love to see support for this functionality

@github-actions github-actions bot removed the Stale label Feb 28, 2022
@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 28, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants