Git Product home page Git Product logo

vitest-visual-studio-code-extension's People

Contributors

keroxp avatar milankovacic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vitest-visual-studio-code-extension's Issues

Test error peek values are "undefined"

First off thank you for forking and improving this plugin!

Describe the bug
The inline display of a test error value shows the error. The peek popup only shows "undefined" for expected and actual.

To Reproduce

assert.deepEqual(["123"], ["234"])

Expected behavior
Error peek should show the expanded error content, not undefined

Screenshots
image

Environment

  • OS: macOS

  • VSCode version: Cursor Version: 0.24.1
    VSCode Version: 1.85.1

  • Vitest version: vitest/1.2.2 darwin-arm64 node-v20.10.0

  • Vitest plugin version: 0.3.0

Additional context

Extension fails to initialize when basicSsl plugin is used

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior on the example project:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

(Paste info.txt content generated by the example project)

  • OS: [e.g. macOS]
  • VSCode version:
  • Vitest version:
  • Vitest plugin version:

Additional context
Add any other context about the problem here.

Handle tests with computed names or tests being produced by for loops somehow orderly

Is your feature request related to a problem? Please describe.
The feature is related to a crashing behavior in case the names of the tests to executed can't be determined statically without running the test module code.

Describe the solution you'd like
Please let the test run somehow terminate orderly in case it has been started via green triangles in the code editor or the Testingview, s.t. it does not write to such outputs to the console, for example:
image

Test runs should not spin forever within the test results view:
image

The same applies to the Testing view/explorer:
image

It's clear that (pseudo) dynamically created tests (and test names) can't be guessed without executing the test module correctly.

Additional context
Two breaking examples:

describe('Foo', () => {
    const x = '1';
    test(x, () => {});
});
describe('Foo', () => {
    for (const x of ['1', '2']) {
        test('1', () => {});
    }
});

Thank you very much in advance!!

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.