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

@@ -15,12 +15,10 @@ const original = Flag.OPENCODE_EXPERIMENTAL_WORKSPACES
beforeEach(() => {
Database.close()
// @ts-expect-error don't do this normally, but it works
Flag.OPENCODE_EXPERIMENTAL_WORKSPACES = true
})
afterEach(() => {
// @ts-expect-error don't do this normally, but it works
Flag.OPENCODE_EXPERIMENTAL_WORKSPACES = original
})