feat(plugins): improve connection lifecycle and session tabs
This commit is contained in:
1 parent
6be8d5544e
commit
1321dc9b9d
25 files changed
+849
-44
No files matched your search
@@ -264,10 +264,12 @@ test("source watching is opt-in and automatic restarts preserve saved connection
|
||||
});
|
||||
|
||||
test("auto-reload preference persists across dev host restarts", async (t) => {
|
||||
let second;
|
||||
t.after(() => second?.close());
|
||||
const first = await fixture(t);
|
||||
assert.equal((await first.request("auto-reload", { enabled: true })).value.enabled, true);
|
||||
await first.host.close();
|
||||
const second = await createMockHost({
|
||||
second = await createMockHost({
|
||||
project: first.root,
|
||||
uiRoot: "ui",
|
||||
backend: process.execPath,
|
||||
@@ -279,10 +281,6 @@ test("auto-reload preference persists across dev host restarts", async (t) => {
|
||||
backendWatch: first.root,
|
||||
buildBackend: async () => {},
|
||||
});
|
||||
t.after(async () => {
|
||||
await second.close();
|
||||
await rm(first.root, { recursive: true, force: true });
|
||||
});
|
||||
const bootstrap = await (await fetch(`${second.origin}/api/bootstrap`)).json();
|
||||
assert.equal(bootstrap.autoReload, true);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user