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

Support replacing test expectation literals in the editor #1358

Open
orta opened this issue Oct 22, 2017 · 0 comments
Open

Support replacing test expectation literals in the editor #1358

orta opened this issue Oct 22, 2017 · 0 comments

Comments

@orta
Copy link

orta commented Oct 22, 2017

Feature request

I spec'd this out on the Jest repo, jestjs/jest#4442 but it might also make sense to think of it from Wallaby's side. You already have test file AST parsing and test expectation data storing. Checking whether the value inside the expect is the exact literal that is inside the failing test, and then offering to replace with the new string/number/object could be a feature of wallaby ( rather than the test runner )

Code editor or IDE name and version

Any IDE that supports fix-its ( but ideally VS Code 🤓 )

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

2 participants