Normalize instance lifecycle wiring (#25501)

This commit is contained in:
Kit Langton
2026-05-02 20:39:20 -04:00
committed by GitHub
parent a6464062b7
commit 7d91d3b1ed
71 changed files with 852 additions and 936 deletions

View File

@@ -2,6 +2,7 @@ import { describe, expect, test } from "bun:test"
import { AppRuntime } from "../../src/effect/app-runtime"
import { Effect } from "effect"
import { Instance } from "../../src/project/instance"
import { WithInstance } from "../../src/project/with-instance"
import { Pty } from "../../src/pty"
import { Shell } from "../../src/shell/shell"
import { tmpdir } from "../fixture/fixture"
@@ -17,7 +18,7 @@ describe("pty shell args", () => {
"does not add login args to pwsh",
async () => {
await using dir = await tmpdir()
await Instance.provide({
await WithInstance.provide({
directory: dir.path,
fn: () =>
AppRuntime.runPromise(
@@ -47,7 +48,7 @@ describe("pty shell args", () => {
"adds login args to bash",
async () => {
await using dir = await tmpdir()
await Instance.provide({
await WithInstance.provide({
directory: dir.path,
fn: () =>
AppRuntime.runPromise(
@@ -78,7 +79,7 @@ describe("pty configured shell", () => {
await using dir = await tmpdir({
config: { shell: Shell.name(configured) },
})
await Instance.provide({
await WithInstance.provide({
directory: dir.path,
fn: () =>
AppRuntime.runPromise(