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

Allow banning only some methods on console #35

Closed
JoshuaKGoldberg opened this issue Mar 5, 2019 · 1 comment · Fixed by #38
Closed

Allow banning only some methods on console #35

JoshuaKGoldberg opened this issue Mar 5, 2019 · 1 comment · Fixed by #38

Comments

@JoshuaKGoldberg
Copy link
Owner

I'm trying to enable this on a large codebase with many console calls of various types. It's a bit of a mess. 😂

In order to help users do this, let's add an API option to disable methods on the console:

import { cft } from "console-fail-test";

cft({
    console: {
        log: false,
    }
});

...where methods are banned by default.

@JoshuaKGoldberg
Copy link
Owner Author

Whoohoo, @mackenco volunteered to do this! 🙌

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

Successfully merging a pull request may close this issue.

1 participant