Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/core/test/snapshot.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $ } from "bun"
import { describe, expect } from "bun:test"
import { describe, expect, setDefaultTimeout } from "bun:test"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: $ import removed but $ is still used

The change drops import { $ } from "bun", yet shell-template $ calls are still used below (and every other file in the repo imports $ from "bun"). This fails TypeScript (Cannot find name '$') and throws at runtime. Restore the import.

import fs from "fs/promises"
import path from "path"
import { Effect, Layer } from "effect"
Expand All @@ -12,6 +12,9 @@ import { Hash } from "@opencode-ai/core/util/hash"
import { tmpdir } from "./fixture/tmpdir"
import { testEffect } from "./lib/effect"

// Real Git setup per test; Windows runners intermittently exceed the 5s default (#303).
setDefaultTimeout(30_000)

describe("Snapshot", () => {
testEffect(Layer.empty).live("captures and restores Location-scoped changes", () => {
// Phase markers for the Windows CI flake: if the test hangs again, the last
Expand Down
Loading