summaryrefslogtreecommitdiffhomepage
path: root/packages/core/test/util
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-30 11:48:13 -0400
committerGitHub <[email protected]>2026-04-30 11:48:13 -0400
commit65c15afe9f78f2b0d2f400e94fab3194e81c77cc (patch)
treedcbd0be583beeecf19d72231f7aef2991b2c78a5 /packages/core/test/util
parent8f57a2a46225109fbd1f74e545e22a9378f777b4 (diff)
downloadopencode-65c15afe9f78f2b0d2f400e94fab3194e81c77cc.tar.gz
opencode-65c15afe9f78f2b0d2f400e94fab3194e81c77cc.zip
test: use testEffect for instruction tests (#25046)
Diffstat (limited to 'packages/core/test/util')
-rw-r--r--packages/core/test/util/effect-flock.test.ts21
1 files changed, 9 insertions, 12 deletions
diff --git a/packages/core/test/util/effect-flock.test.ts b/packages/core/test/util/effect-flock.test.ts
index 9e8bc24ac..76cee4f8e 100644
--- a/packages/core/test/util/effect-flock.test.ts
+++ b/packages/core/test/util/effect-flock.test.ts
@@ -93,18 +93,15 @@ async function waitForFile(file: string, timeout = 3_000) {
// Test layer
// ---------------------------------------------------------------------------
-const testGlobal = Layer.succeed(
- Global.Service,
- Global.Service.of({
- home: os.homedir(),
- data: os.tmpdir(),
- cache: os.tmpdir(),
- config: os.tmpdir(),
- state: os.tmpdir(),
- bin: os.tmpdir(),
- log: os.tmpdir(),
- }),
-)
+const testGlobal = Global.layerWith({
+ home: os.homedir(),
+ data: os.tmpdir(),
+ cache: os.tmpdir(),
+ config: os.tmpdir(),
+ state: os.tmpdir(),
+ bin: os.tmpdir(),
+ log: os.tmpdir(),
+})
const testLayer = EffectFlock.layer.pipe(Layer.provide(testGlobal), Layer.provide(AppFileSystem.defaultLayer))