Watch mode with `vite-jest --watch`
See original GitHub issueI can only press a
once to re-run the tests, then after second run I get
● Test suite failed to run
Server is not running.
and can’t re-run tests anymore.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Issues · sodatea/vite-jest - GitHub
First-class Vite integration for Jest. Contribute to sodatea/vite-jest development by creating an account on GitHub. ... Watch mode with vite-jest --watch.
Read more >Features | Guide - Vitest
Vite 's config, transformers, resolvers, and plugins. ... Smart & instant watch mode, like HMR for tests! ... Jest-compatible Snapshot.
Read more >Setup Jest with Vite (featuring SWC) - Blog by hung.dev
First, generate React Typescript project using Vite. · Then, install the main dependency jest : · Install react-testing-library packages: · Exclude ...
Read more >Adding Jest with TypeScript Support to a Vite Application
The app is built on top of vite instead of the more popular create react app. ... Using Jest in Watch Mode with...
Read more >Testing Vite with minimal config using Vitest - LogRocket Blog
Vitest's holistic approach to testing suites: Jest, Babel, and webpack all ... Running in watch mode is much faster than the Jest equivalent ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sodatea Actually I’m still getting this, but only every second re-run.
Output this time is:
I’m using
vite@2.7.10
andvite-jest@0.1.4
.Got it. It’s due to the cache of the Vite dev server. I found an easy fix. Will patch it soon.