Coder Social home page Coder Social logo

Comments (8)

sodatea avatar sodatea commented on August 21, 2024 1

Got it. It's due to the cache of the Vite dev server. I found an easy fix. Will patch it soon.

from vite-jest.

zigomir avatar zigomir commented on August 21, 2024 1

@sodatea Actually I'm still getting this, but only every second re-run.

Output this time is:

  ● Test suite failed to run

    The server is not running

      at WebSocketServer.<anonymous> (node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket-server.js:155:14)
      at emitClose (node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket-server.js:442:10)

I'm using [email protected] and [email protected].

from vite-jest.

sodatea avatar sodatea commented on August 21, 2024

Do you have a reproduction repo? I can't reproduce this in my projects.

from vite-jest.

zigomir avatar zigomir commented on August 21, 2024

Hmm, happy to report I can't reproduce this anymore and --watch works as expected 🎉
Maybe I had some old vite/jest cache or something 🤷‍♂️

Thank you for this amazing library though, I had no real issues porting from jest to vite-jest and performance bump is

time npx jest --no-cache

Executed in   20.00 secs    fish           external
   usr time   92.46 secs    0.41 millis   92.46 secs
   sys time    7.70 secs    1.10 millis    7.70 secs

vs

time npx vite-jest --no-cache

Executed in    8.98 secs    fish           external
   usr time    7.31 secs    0.38 millis    7.31 secs
   sys time    2.39 secs    1.35 millis    2.39 secs

from vite-jest.

zigomir avatar zigomir commented on August 21, 2024

Spoke too soon. Watch seems to be working but when I change test file that should fail I still only see tests passing. I'm using vue 3 with typescript and "@vue/test-utils": "^2.0.0-rc.17".

from vite-jest.

zigomir avatar zigomir commented on August 21, 2024

I was now able to reproduce

  ● Test suite failed to run

    Server is not running.

running npx vite-jest --watch inside vite-jest/examples/vue-app-ts directory of this repo.

from vite-jest.

straach avatar straach commented on August 21, 2024

I second this problem. Using the following:

"vite": "2.8.6",
"vite-jest": "0.1.4"

from vite-jest.

erik-with-a-k avatar erik-with-a-k commented on August 21, 2024

Also repro-ing this on

"vite": "2.9.6",
"vite-jest": "0.1.4"

from vite-jest.

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.