Skip to content

Commit 8d11f4f

Browse files
committed
test: set --no-autoupdate to true
1 parent ed465fa commit 8d11f4f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/_tests/index.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ChildProcess } from "node:child_process";
22
import fs from "node:fs";
33
import { bin, install, tunnel, service } from "../lib.js";
4-
import { describe, it, expect, beforeAll, vi } from "vitest";
4+
import { describe, it, expect, beforeAll } from "vitest";
55

66
process.env.VERBOSE = "1";
77

@@ -25,7 +25,10 @@ describe(
2525
"tunnel",
2626
() => {
2727
it("should create a tunnel", async () => {
28-
const { url, connections, child, stop } = tunnel();
28+
const { url, connections, child, stop } = tunnel({
29+
"--url": "localhost:8080",
30+
"--no-autoupdate": "true",
31+
});
2932
expect(await url).toMatch(/https?:\/\/[^\s]+/);
3033
await connections[0]; // quick tunnel only has one connection
3134
expect(child).toBeInstanceOf(ChildProcess);

0 commit comments

Comments
 (0)