MCPcopy Create free account
hub / github.com/anomalyco/opencode / clear

Function clear

packages/opencode/test/config/config.test.ts:130–130  ·  view source on GitHub ↗
(wait = false)

Source from the content-addressed store, hash-verified

128 Effect.andThen(wait ? Effect.promise(() => InstanceRuntime.disposeAllInstances()) : Effect.void),
129 )
130const clear = (wait = false) => Effect.runPromise(clearEffect(wait))
131// Get managed config directory from environment (set in preload.ts)
132const managedConfigDir = process.env.OPENCODE_TEST_MANAGED_CONFIG_DIR!
133const originalTestToken = process.env.TEST_TOKEN

Callers 2

config.test.tsFile · 0.70
checkFunction · 0.70

Calls 1

clearEffectFunction · 0.85

Tested by

no test coverage detected