Giter VIP home page Giter VIP logo

Comments (5)

hi-ogawa avatar hi-ogawa commented on July 23, 2024

Can you check if v1.5.0 works? Also just in case, can you test without coverage on v1.5.1?

from vitest.

httpete avatar httpete commented on July 23, 2024

1.5.0 started failing on all my snapshots.
1.5.2 (just released 4/25) works on all snapshots - But dies with 1 error (exact same suite of tests)

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Failed to fetch dynamically imported module: http://localhost:5173/@id/@vitest/coverage-istanbul
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

from vitest.

httpete avatar httpete commented on July 23, 2024

Coverage enabled false stops the error completely.

from vitest.

AriPerkkio avatar AriPerkkio commented on July 23, 2024

I'm unable to reproduce this. It works fine here: AriPerkkio/aria-live-capture#191.

Without reproduction setup there is nothing we could do. I would recommend to check your package manager's lockfile. Make sure all Vitest packages have the same version.

$ pnpm test

> [email protected] test /x/aria-live-capture
> vitest run

 RUN  v1.5.2 /x/aria-live-capture
      [Browser] Browser runner started at http://localhost:5173/
      Coverage enabled with istanbul

 ✓ |Browser| test/capture-announcements.test.ts (109)
 ✓ |Browser| test/utils.test.ts (56)

 Test Files  2 passed (2)
      Tests  164 passed | 1 todo (165)
   Start at  17:26:55
   Duration  613ms (transform 0ms, setup 10ms, collect 144ms, tests 23ms, environment 0ms, prepare 0ms)

 % Coverage report from istanbul
--------------------------|---------|----------|---------|---------|--------------------------------
File                      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s              
--------------------------|---------|----------|---------|---------|--------------------------------
All files                 |   90.25 |     85.5 |   97.87 |    93.3 |                                
 capture-announcements.ts |   83.67 |     75.3 |   93.33 |   89.28 | 69,117,151-152,161-168,177,207 
 config.ts                |     100 |      100 |     100 |     100 |                                
 dom-node-safe-guards.ts  |     100 |      100 |     100 |     100 |                                
 interceptors.ts          |   88.46 |    76.92 |     100 |   88.46 | 18,56,64                       
 queries.ts               |   95.23 |    94.44 |     100 |   97.36 | 38                             
 utils.ts                 |   96.87 |    93.75 |     100 |   98.18 | 127                            
--------------------------|---------|----------|---------|---------|--------------------------------

from vitest.

github-actions avatar github-actions commented on July 23, 2024

Hello @httpete. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

from vitest.

Related Issues (20)

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.