mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-26 06:14:32 +00:00
refactor: convert Flag namespace to const object with getters (#22984)
This commit is contained in:
@@ -14,7 +14,6 @@ const { Instance } = await import("../../src/project/instance")
|
||||
|
||||
const experimental = Flag.OPENCODE_EXPERIMENTAL_WORKSPACES
|
||||
|
||||
// @ts-expect-error tests override the flag directly
|
||||
Flag.OPENCODE_EXPERIMENTAL_WORKSPACES = true
|
||||
|
||||
afterEach(async () => {
|
||||
@@ -28,7 +27,6 @@ afterAll(() => {
|
||||
process.env.OPENCODE_DISABLE_DEFAULT_PLUGINS = disableDefault
|
||||
}
|
||||
|
||||
// @ts-expect-error restore original test flag value
|
||||
Flag.OPENCODE_EXPERIMENTAL_WORKSPACES = experimental
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user