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

Feature request: Add a command to open the file under test or test for file #233

Open
seanpoulter opened this issue Jan 28, 2018 · 2 comments

Comments

@seanpoulter
Copy link
Member

Expected Behavior

I'd love to have a command opens the related test or file for the current document. This should work both ways:

  • When editing source code, open the test
  • When editing a test, open the source code
    Since we won't be certain, the command could open up a quick pick menu showing the imported files.

I'm not sure if that falls under the scope of this extension, but I find myself wishing this was a thing quite often so I'm pretty motivated to add it.

@orta
Copy link
Member

orta commented Jan 28, 2018

Yeah, makes sense to me to be in here. This code exists somewhere in jest, note that there can be multiple test files for one file, so ideally looping through them>

@seanpoulter
Copy link
Member Author

Good point @orta. I'll see if there's something I can pull in from Jest.

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