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
commit f592c3846b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 77 additions and 137 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
})