Vitest watch mode closes instantly after running tests #3890
-
I am currently developing a library to transfer files with the help of webRTC.https://github.com/nuntax/p2p-files import { expect, test } from "vitest";
import { FilePeer } from ".";
//@ts-ignore
import wrtc from "wrtc";
let receiver: any;
let sender: any;
test("Connect Peers", async () => {
receiver = new FilePeer({ wrtc: wrtc, initiator: false, trickle: false });
sender = new FilePeer({ wrtc: wrtc, initiator: true, trickle: false });
expect(receiver).toBeDefined();
expect(sender).toBeDefined();
}, 10000); I am running my tests with
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
What I've discovered after is that watch mode starts up normally without the initialization of sender and receiver. I can also add them and the test runs without Problem. However as soon as I change something and the test reruns I am getting an Error message that I can't see because vitest is exiting before. |
Beta Was this translation helpful? Give feedback.
-
Hi @sheremet-va But the issue with vitest closing watch mode still persists for me. I do not seem to have issues with tearing down/state leaks, just the vitest process ending But I would love the vitest watch process to stay alive as that is the whole point of me keeping tests running in development |
Beta Was this translation helpful? Give feedback.
afterEach