Giter Site home page Giter Site logo

vscode-jump-to-test's People

Contributors

blakeherrington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-jump-to-test's Issues

Doesn't work for repeated filenames

If you have multiple files with the same name in your project, the extension doesn't know which one to open and will just open a random one.

For example, if there were multiple App.js files, it would open a random App.spec.js instead of the correct one.

A potential fix would be to assume the directory structure of the test matches the existing file, but that would make things more rigid. Or a way to match to the "closest" file.

Add tests

Add unit tests!

I have a quick description in extension.test.ts of what needs to be tested, but we need to fill it out and add CI.

Special case for Vue files

When using Vue SPAs with vue-test-utils, your component is in Foo.vue, and the test is in Foo.spec.ts. Since one has a .vue extension, and the other has a .ts extension, this won't work

Sometimes opens the wrong file

For one reason or another, sometimes the wrong file gets opened when the command is triggered.

There are probably a few cases of this - but example I found is this:

.../app/controllers/private/v1/example_controller.rb

will open

.../test/controllers/portal_example_controller_test.rb

This example could be resolved by making an adjustment to the glob pattern.

Nothing happens when I try to use it

Hi, I installed the app and when I try to use it with file *.ts โ†”๏ธ *.spec.ts it does not work.
Nothing happens and I do not have any message/error ๐Ÿค”

Add searching indicator

Sometimes it takes a second for the extension to find and open the test file. It would be nice if there was some sort of indication that the extension was activated and working.

Add mapping for *.tests.js

Hi!
I like this extension and I found that some projects use the word tests instead so fileName.js becomes fileName.tests.js. Can you please consider adding that mapping as well?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.