refactor: convert Flag namespace to const object with getters (#22984)

This commit is contained in:
Kit Langton
2026-04-16 21:57:21 -04:00
committed by GitHub
parent c026e25088
commit f592c3846b
4 changed files with 82 additions and 142 deletions

View File

@@ -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
})